This is an old revision of the document!
Command-line Options
@echo off
“C:\WinSCP\WinSCP.com” ^
/command ^ "open sftp://respectuser:~f388db0dc946d395aadbb765b1214d8f~40~34413679bd8ff5949501944f01fa109c~XML~301b1f3b4b72e296ae61646e86d28620~//~ee2da9c550454c4a4f2abdec9296c33c~)~e4a265577b060803ce210db7155324d1~//%%'' 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"