Differences

This shows you the differences between the selected revisions of the page.

2011-07-31 2011-09-13
scriptcommand_* (martin) switch // (martin)
Line 106: Line 106:
<code> <code>
winscp.com /command "open ""My session""" "put ""C:\Documents and Settings\martin\Documents\myfile.dat""" winscp.com /command "open ""My session""" "put ""C:\Documents and Settings\martin\Documents\myfile.dat"""
 +</code>
 +
 +Argument starting with slash is considered as switch. If you need to pass parameter with such syntax (i.e. typically a remote path like ''/root''), you need to use special switch ''//'' (two slashes) before the argument. The switch ''//'' denotes that all following arguments are not switches. Example:
 +<code>
 +winscp.exe /synchronize // "C:\Documents and Settings\martin\Documents\MySite" /root
</code> </code>

Last modified: by martin