View Single Post
Old 12-18-2005, 11:46 AM  
Rodney
Guest
 
Posts: n/a
Default

OnUploadComplete = %EXEC d:\ioftpd\scripts\hidebat.exe d:\ioftpd\scripts\extract.bat %[$path]

extract.bat contains

if not exist %1\*100*complete* exit
rar.exe e -y %1\*.rar %1\x\
if exist %1\x\*.avi (
move %1\x\*.avi %1\..\
rmdir /s /q %1
) else exit

i started to play around and got this far, that wont work automatically but i changed the batch file to echo it all to a txt so i could see what it was doing, i then renamed the txt to .bat and ran it, it then performed perfect. extracted, moved the avi, and then removed the directory. i have the line after my zipscript so the folder with the complete string should be there already.

so i guess the batch file is dont correctly (it works when ran manually), do you know of anything else that would prevent it from working automatically?
  Reply With Quote