Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 01-31-2004, 11:32 PM   #1
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default rmdir variable

variable for directory being removed in [FTP_Pre-Command_Events]
?

i want to execute a script when pre rmd is executed (i want to clean some hidden files created by a zipscript in a given folder)... except i don't have a variable to check which folder is being deleted therefore can't clean those hidden files up, and ioFTPD won't let me dele the folder b/c of those files still existing in the folder i want to dele

any help? maybe there is a variable that has this already, or maybe one could be assigned it? (%[extra] isn't used in this case to the best of my knowledge)
mr_F_2 is offline  
Old 01-31-2004, 11:34 PM   #2
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

pre script is called with that in argument.
list the arguments u receive, u'll see it.
Mouton is offline  
Old 02-01-2004, 12:09 AM   #3
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

this is what i get when removing "F:\[incoming]\gaj\teststst":

[23:08:53] 257 "/upload/gaj/" is current directory.
[23:08:53] RMD /upload/gaj/teststst
[23:08:54] Param 1 = f:\[incoming]\gaj
[23:08:54] Param 2 = RMD
[23:08:54] Param 3 = /upload/gaj/teststst

my ioFTPD.ini line is:
rmd = %EXEC ..\scripts\checkscript.exe "%[$path]"

i would like the physical path being deleted, not the virtual.
mr_F_2 is offline  
Old 02-01-2004, 09:52 AM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

no such thing...
use a mix of $path and $pwd
or $systempath and $virtualpath in fact... those are the new vars.
Mouton is offline  
Closed Thread

Tags
clean, dele, files, folder, variable


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


All times are GMT -5. The time now is 11:50 PM.

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