This is an old revision of the document!

Command-line Options

@echo off

“C:\WinSCP\WinSCP.com” ^

/command ^
  "open sftp://respectuser:~080fd816ee8cb8758fa7a5f2d4a899fa~40~23afaf535642a897c812825ed9822e39~XML~eda1279fcd8c26b9ecbaddfe3989ea1f~//~456587b841c73b732442bb7b5716b0c2~)~73f341b2e5f3cf109e7075ca996b1464~//%%'' 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