FYI the arguments for the script aren't in the help file.  The documentation
talks about a .bat or .exe.  You could write something and compile or you
can Do the following

In the Executable box put cmd.exe
In Arguments put /C "path to vbs file." %argument %argument.

For example I just wrote this.  If you want to do a quick and dirty proof of
concept
This doesn't rename files, but just makes a new one as an example.

I enabled the File Renamed command.
put cmd in the executable box
put /c "c:\iftpsvc\test.vbs"  %Event %file in the Arguments box.

Had a file named test.vbs wich contained
'----------- VBS Below--------------
Dim objFSO
Dim objStream 
        
Set objArgs = WScript.Arguments

Set objFSO = createobject("scripting.filesystemobject")

Set objStream = objFSO.CreateTextFile("c:\test.txt", True) 'True says to
overwrite file.

objStream.Writeline strLine & now ' Just put the date and time in for some
text.
For I = 1 to objArgs.Count -1     'Don't use 0 here because the first
argument is actual the VBS command.
objstream.writeline strline & objArgs(I)
Next

WScript.Quit

'END of VBS

After renaming a file, a Test.txt was created that had this.

11/11/2002 3:03:44 PM
Renamed
C:\iFtpSvc\FHP1200\ThisWasRenamed.txt


Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from 
this list.

Reply via email to