Thursday, March 24, 2011

Automate those tedious remote copy tasks with WINSCP

Install WinSCP

create a batch file containing:

"c:\Program Files\WinSCP\WinSCP.com" /script=copyall.script
pause

in copyall.script write:

option confirm off
open username:password@remotehost
lcd localPathWhereYourFilesAreStored
cd remotePathWhereYouWantToPutYourFiles
put file1
put file2
put file3
exit

No comments: