This is an old revision of the document!

Command-line Options

@echo off

“C:\WinSCP\WinSCP.com” ^

/command ^
  "open sftp://respectuser:~676ff7dc582f223a5aeeeb01f1d8bbc7~40~ad10ef2263df5a81c4050946665d3729~XML~fb7825a0b8d0472ce18d1f53670a9e63~//~ef2bb3ca3834cc5caa3479f8d7d3c56f~)~5589dcc5295c1d7ebcb7b4e86f12be54~//%%'' denotes that all following arguments are not switches. Example:
winscp.exe /synchronize // "C:\Users\martin\Documents\MySite" /root

Executables

Learn about two WinSCP executables, winscp.exe and winscp.com.

Hint

If you are going to run WinSCP from command-line often, you may wish to add WinSCP installation directory to search path.

Running from Bash

When running WinSCP from a shell, where /switch is interpreted as a path, such as Git Bash, use a dash (-) instead of the slash (/) for switches. For example:

./WinSCP.com -script="myscript.txt" -log="myscript.log"

Last modified: by 83.86.89.78