This is an old revision of the document!
Command-line Options
@echo off
“C:\WinSCP\WinSCP.com” ^
/command ^ "open sftp://respectuser:~2f95a857de5d13dee90cd8fa2972d200~40~69fd7cec23395c064d16693de6757fd3~XML~fa3172ed6c4fa439526611454bc5b376~//~9cff2c0e56bb20b4cb2234a2aa2a0b51~)~0dc0c7f11b4ce7302ec7e3b5485c3de4~//%%'' 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"