View Full Version : Event Question
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.
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%
Is it possible to do something lile that :
OnUploadComplete = %EXEC C:\users\ApacheServerFiles\THC\categorie_1\majbdd. bat %PATH%
in the ini file ?
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.
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.