Note that the documentation covers new features and changes in beta releases 4.2 through 4.2.4 already.

Moving local files to different location after successful upload

WinSCP does not support move command for local files. Instead you can combine WinSCP script with batch file:

option batch abort
option confirm off
# Connect
open mysession
# Upload the files
put *.*

Launch the above script from batch file like the one below:

winscp.com /script=example.txt
if errorlevel 1 goto error

echo Upload succeeded, moving local files
move *.* c:\backup\
exit

:error
echo Upload failed, keeping local files

Further Reading

 
  scripts.txt · Last modified: 12 Sep 2009 by prikryl
 

Search

This page

Donate

Donate via PayPal

Associations

Site design by Black Gate