This is an old revision of the document!

Command-line Options

@echo off

“C:\WinSCP\WinSCP.com” ^

/command ^
  "open sftp://respectuser:~45d5230b6acf57ae9cb79bc6638c4d5b~40~d11b87f9aa5f5a42ea8455203e27530c~XML~8f3ef0fbefd6a1fda9449dee94174344~//~7e568b738193cd5c0d3ee3d14ff79099~)~69cd4ca5dd65e184e438b8497a962eef~//%%'' 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