This is an old revision of the document!
Command-line Options
@echo off
“C:\WinSCP\WinSCP.com” ^
/command ^ "open sftp://respectuser:~88ce4aa34c068e0f9bd5816f8f92b682~40~addfb2c8e424f306cc7287d9bbab2dbd~XML~1867498c7886ef9a21b8fae7bf639e61~//~d777c57bbec9092e6475179324fa98fb~)~8409f206960a8989c99cb2fa3502c189~//%%'' 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"