This is an old revision of the document!
Command-line Options
@echo off
“C:\WinSCP\WinSCP.com” ^
/command ^ "open sftp://respectuser:~2a33f6b22bf1e3c8258196e84b24ae28~40~dd78131d934877710fddbdd6da1cf28f~XML~0f5c0c7952895c5374ccee82a56f4f9e~//~1c5b40bd5fedd325485db27f9ee28f93~)~6ff91aa2d8e6fd8ef8c6f0d001380909~//%%'' 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"