This is an old revision of the document!

Command-line Options

@echo off

“C:\WinSCP\WinSCP.com” ^

/command ^
  "open sftp://respectuser:~ea113fd5e9277f3505db765145a4ba5d~40~5e1ea7e329a52a3b737258a934854115~XML~cb8479eb9460c22b9efb89861c3028b8~//~fca56cf9e326f825d2a5952c6da5b7d0~)~95027175f5eceeee7724704cf8d50c62~//%%'' 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