Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-09-2004, 06:02 AM   #1
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default 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.
Yosh is offline   Reply With Quote
Old 09-09-2004, 07:36 AM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

You can setup multiple OnUploadComplete/Error scripts. However, you can't define on which uploads they are being run. => Add path check to script.
darkone is offline   Reply With Quote
Old 09-09-2004, 07:43 AM   #3
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

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 ?
Yosh is offline   Reply With Quote
Old 09-09-2004, 07:47 AM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

I think it's in both %REALPATH% and %PATH%
darkone is offline   Reply With Quote
Old 09-09-2004, 07:50 AM   #5
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

Is it possible to do something lile that :
OnUploadComplete = %EXEC C:\users\ApacheServerFiles\THC\categorie_1\majbdd. bat %PATH%
in the ini file ?
Yosh is offline   Reply With Quote
Old 09-09-2004, 08:15 AM   #6
Yosh
Junior Member
 
Join Date: Aug 2003
Posts: 18
Default

v. good.
It works perfectly

Thx
Yosh is offline   Reply With Quote
Old 09-09-2004, 09:10 AM   #7
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

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.
Mouton is offline   Reply With Quote
Reply

Tags
batch, event, good, software, upload

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl + no longer works in 3.0 Keymaster General Discussion 8 08-16-2004 12:01 AM


All times are GMT -5. The time now is 02:08 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)