Differences

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

2011-09-13 2011-09-13
using .exe with /synchronize (martin) recommend using // switch (martin)
Line 61: Line 61:
If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[scriptcommand_exit|exit]]'', regular non-batch mode follows. If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[scriptcommand_exit|exit]]'', regular non-batch mode follows.
-Use parameter ''/parameter'' to specify list of arguments to be [[scripting#syntax|passed to script]].+Use parameter ''/parameter'' to specify list of arguments to be [[scripting#syntax|passed to script]]. It is recommended to escape the arguments with [[commandline#syntax|// switch]].
With ''[[executables|winscp.exe]]'', if ''/console'' parameter is not used along with ''/script'' or ''/command'', the script/command is executed without visual feedback (window). With ''[[executables|winscp.exe]]'', if ''/console'' parameter is not used along with ''/script'' or ''/command'', the script/command is executed without visual feedback (window).
Line 80: Line 80:
Use ''/defaults'' parameter along with ''/upload'', ''/synchronize'' or ''/keepuptodate'' to skip the settings dialog and start the operation straight away with default settings. Use ''/defaults'' parameter along with ''/upload'', ''/synchronize'' or ''/keepuptodate'' to skip the settings dialog and start the operation straight away with default settings.
 +
 +It is recommended to escape the arguments with [[commandline#syntax|// switch]].
<code> <code>
-winscp.exe /defaults /synchronize "C:\Documents and Settings\martin\Documents\MySite" /home/martin/public_html+winscp.exe /defaults /synchronize // "C:\Documents and Settings\martin\Documents\MySite" /home/martin/public_html
</code> </code>

Last modified: by martin