12-18-2005, 10:27 AM
Join Date: Dec 2002
all variables defined in ioftpd.env are already available from a batch file running from io, you don't need to send them as arguments when calling your .bat
%varname%, ie %user%, %path%, etc.
Scripts called on a OnUploadComplete event are already sent some arguments by default, so %1 etc. already containe some information you might wanna play with.
A good way to see all the info you have available is to show all the variables at the start of your batch file:
echo arg1 = %1
echo arg2 = %2
echo arg3 = %3
To extract the rar file, you'll need to try to unrar *.rar and *.001
Also, the if ... else ... syntax you are using is not valid in a batch file.