Here is one approach.
 
Write a batch file that uses WS_FTP in command line mode to transfer your file, and then execute it.
Schedule the batch file using the "at" command or the Windows Scheduler.
 
e.g. This 2-line batch file (excluding comments) downloads a file then executes it.  (the first line is really long)
 
; download the file
; ----------------
"C:\program files\WS_FTP Pro\wsftppro" -s webs:/users/rglade/fileprop.exe -d local:c:\download\fileprop.exe
 
; execute the file
; ----------------
c:\download\fileprop
 
 
This assumes you have a site named "webs".
Caveats.  WS_FTP must NOT be running when the batch file executes.  If WS_FTP is not running, then the batch file will start WS_FTP and wait on it to exit.  If WS_FTP is already running, the command will be handed over to the already running process, and the batch file will continue on immediately.
 
--Claude
 
----- Original Message -----
From: Steve
Sent: Tuesday, October 01, 2002 3:44 PM
Subject: [WS_FTP Forum] Scheduler

Hello:
 
I am new to Wsftp. In looking it over, I am trying to figure out how I can schedule a file to be transferred and then have it open automatically, the way the Execute command works.
 
Is this possible, and if so, how would I go about doing it?
 
Any help would be much appreciated.
 
Steve G

Reply via email to