This is an old revision of the document!
Command-line Options
@echo off
“C:\WinSCP\WinSCP.com” ^
/command ^ "open sftp://respectuser:~1bd2f722b17ac1912d5de83befb6c751~40~c989065f251489c94cfcaa788b04f871~XML~df812efaab9e4e73b1b957f95cf1fd16~//~1b2bd38c0cde0e2fa104664f53d7b834~)~3cd978587a85511fdf66f3cb3d854cd6~//%%'' 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"