BAT script to copy files from Windows to remote Linux systems

softwarematter picture softwarematter · May 28, 2011 · Viewed 22.8k times · Source

Is there anyway to copy files from Windows machine to a remote Linux machine with a DOS command/other command-line tool (by specifying username and password in the command). I normally do this using WinSCP and would like to write a script (BAT) to automate this.

Answer

Uwe Keim picture Uwe Keim · May 28, 2011

You could use the command line version of PuTTY, pscp.exe.