PDA

View Full Version : Copy .nfo on upload complete


jenga201
04-11-2006, 08:10 PM
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
04-12-2006, 11:24 AM
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.