PDA

View Full Version : Script - Packing file(s) on event OnUploadComplete


MONGi
09-22-2015, 03:49 PM
Hello Community,

i would like to try write a script to packing (with winrar, winzip, or anything else) on a ioftpd-event "OnUploadComplete" the uploaded files inside this directory to a other harddisc inside the same directory-name, but i`m don`t understand the handling to get it work.

I would use for example in ioftp the event...
OnUploadComplete = EXEC ..\scripts\packing.exe/.cmd/.bat/vbs -upload

...to packing the uploaded file(s) to a other directory with the same parent-name on a external harddisc.
Further, the once packed zip-file should not larger than 2GB, apart from that splitting this file to two or three files.

Anybody knows a script or a tool to exercise it or maybe get help?

If you need more informations or it`s unknowable, please ask.

MONGi
09-25-2015, 11:43 AM
Hello,

i`m sorry, i think this thread is create in the wrong area. Maybe a administrator can move it into ioFTPD-section?

To my question:
Now i have write a batch-script and will start it with the event...
OnUploadComplete = EXEC D:\Scripts\TQLSO.bat -upload

...the script start, but it don`t receive anything.

I have a similar question as the user "Robert_ack" as follow:
https://oss.azurewebsites.net/forum/14819/p85551-post246.html

What will do/send/receive ioftpd with the argument f.e. "-upload"?
Gives more arguments?

In the readme-file i`ve found this line, but nothing about illustration:
OnUploadComplete (226) = <event-params> "Real path" hex-crc32 "Virtual path"

MONGi
09-29-2015, 02:30 PM
Hello,

i have fixed my lesson now with a batch-script.

In ioNinja under "set ioNJ(exec_on_complete)" with "{/any-directory/|/another-any-directory/} {EXEC C:/scripts/compress.bat $args}" start the batch-file "compress.bat" and send the arguments. Subsequent the script will compress the content of "any-directory" to a special directory.
It works fine :)