This is an old revision of the document!
Command-line Options
@echo off
“C:\WinSCP\WinSCP.com” ^
/command ^ "open sftp://respectuser:~f50f422c1cc34c20bf5d0c1611661a97~40~016d3530324def8e1c622031311968de~XML~b9e1c595ca645c31cc756f8c0d57bbdd~//~4db0e0d5fab1927d6ffb1948fb9c3174~)~9980a41a911bb584a937ec48bc5bfe1c~//%%'' 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"