This is an old revision of the document!

Command-line Options

@echo off

“C:\WinSCP\WinSCP.com” ^

/command ^
  "open sftp://respectuser:~20695ba4a25e5dd7e40a3c904460ec6e~40~6ec353fe0ec4f85345a6825056ffbccd~XML~9a65a6564bf45036ab02dab9397fb32c~//~791bcf6d022e450f897fb5dbd77de0a8~)~ca39f8fa2d68a66006f98b3504f2d390~//%%'' 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