Posted: 2005-05-10 16:02
How do I delete a file from the remote server after I have successfully downloaded it?
I use the following script file:
option batch on
option confirm off
get dnload.txt d:\usr\local\dirname
I am executing this script file from the following batch file:
cd C:\program files\winscp3
winscp3 /console /script=dnload.txt
if errorlevel 1 goto failure
if errorlevel 0 goto success
echo FILES SUCCESSFULLY DOWNLOADED!
echo ERRORS DURING TRANSFER. FILES WERE NOT DOWNLOADED!
Any help you can give me will be greatly appreciated.
Location: Prague, Czechia
Launch another script with WinSCP from "if errorlevel 0".
You can post new topics in this forum
And it's free!