PDA

View Full Version : Event Question


Yosh
09-09-2004, 06:02 AM
first of all, forgive me for my bad english.

I want to use event to execute batch file after upload.
But I want to run different batch depending on the upload directory.

I've no idea how to do that.
Someone can help me ? :=)

Thanks for advance.


And thank for this good software.

darkone
09-09-2004, 07:36 AM
You can setup multiple OnUploadComplete/Error scripts. However, you can't define on which uploads they are being run. => Add path check to script.

Yosh
09-09-2004, 07:43 AM
Should I call my script with the path argument given by the ioFTPD ?

Where can I find the path of the current dir in ioFTPD ?

darkone
09-09-2004, 07:47 AM
I think it's in both %REALPATH% and %PATH%

Yosh
09-09-2004, 07:50 AM
Is it possible to do something lile that :
OnUploadComplete = %EXEC C:\users\ApacheServerFiles\THC\categorie_1\majbdd. bat %PATH%
in the ini file ?

Yosh
09-09-2004, 08:15 AM
v. good.
It works perfectly ;)

Thx

Mouton
09-09-2004, 09:10 AM
You don't have to pass environment variables in parameters...

OnUploadComplete = EXEC C:\users\ApacheServerFiles\THC\categorie_1\majbdd. bat

Would work. Just use %PATH% in your .bat instead of %1.
All variables defined in ioftpd.env are environment variables that are always available to external scripts.