View Single Post
Old 12-18-2005, 11:27 AM  
Mouton
Posse Member
 
Join Date: Dec 2002
Posts: 1,956
Default

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 off
set
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.
Mouton is offline   Reply With Quote