PDA

View Full Version : i need help to create my own script


Robert_ack
08-20-2015, 06:46 AM
hello i need that my ioftpd executes an exe on event OnUploadComplete starts an exe with argument the path and filename including its extension of the file that caused the event

i know how to start the exe but i dont know how to make it getting those arguments . is there any way to achieve this ?



result should be something like this

file uploaded to site: /pwd/rel/filename.part1.rar

ioftpd says windows to exec myexe.exe /pwd/rel/filename.part1.rar"


so far i have achived (very easily)

file uploaded to site: /pwd/rel/filename.part1.rar

ioftpd says windows to exec myexe.exe

by adding the event on ioftpd.ini


is there a way to make it send the parameters ? regards

o_dog
09-12-2015, 11:49 AM
ioftpd passes args in deault mode. The simplest way is to achive your goal is to create a itcl script that passes the args you need to the exe. Another option would be to rewrite the program to respond to the default arguments.

Robert_ack
09-12-2015, 03:02 PM
what you mean by default argument ? you mean %1 , %2 and so on ?