Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > Scripting > ! Requests

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread
Old 04-11-2006, 08:10 PM   #1
Junior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Aug 2005
Posts: 9
Default Copy .nfo on upload complete

Is it possible to add some command into zipscript-c.php that will transfer that dir's .nfo to another directory when the .sfv is complete? Or maybe a better way where i don't have to edit any script code.

I'd just like something that copies the .nfo to another directory whenever an .sfv checks out complete.

Thank you.
jenga201 is offline   Reply With Quote
Old 04-12-2006, 11:24 AM   #2
Junior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Aug 2005
Posts: 9
Default

ok, so i saw a thread below this one about the same type of deal...and i made a .bat file to do what i want:

if exist %1\*M*F*COMPLETE* goto copy
exit
:copy
mkdir "C:/Directory%PWD%"
copy %1\*.nfo "C:/Directory%PWD%"
exit

I'm just wondering if there's a variable that's just the directory name...like %PWD% is actually /VirtualPath/Dirname. But to make this easier, it would be helpful for just /Dirname

Any suggestions?

Thanks.
jenga201 is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 08:10 AM.