Differences

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

2005-05-03 2005-05-04
no summary (63.197.179.194) 3.7.5 /command (martin)
Line 8: Line 8:
winscp3.exe [session] /synchronize [local_directory] [remote_directory] winscp3.exe [session] /synchronize [local_directory] [remote_directory]
winscp3.exe [session] /keepuptodate [local_directory] [remote_directory] winscp3.exe [session] /keepuptodate [local_directory] [remote_directory]
-winscp3.exe [session] /console [/script=script_file]+winscp3.exe [session] /console [/script=script_file] [/command <command1> <command2>]
winscp3.exe /update winscp3.exe /update
winscp3.exe /ini=<inifile> winscp3.exe /ini=<inifile>
Line 19: Line 19:
With ''/synchronize'' or ''/keepuptodate'' parameter WinSCP performs //Synchronize// or //Keep remote directory up to date// commands respectively on the specified session and directories. A dialog to set options is displayed first (Note that this is not intended for automation, see [[scripting]]). With ''/synchronize'' or ''/keepuptodate'' parameter WinSCP performs //Synchronize// or //Keep remote directory up to date// commands respectively on the specified session and directories. A dialog to set options is displayed first (Note that this is not intended for automation, see [[scripting]]).
-Parameter ''/console'' executes WinSCP in [[scripting|console (scripting) mode]]. Optional batch script file can be set using ''/script'' command. When the script file does not end with ''exit'' command, regular non-batch mode follows. Note that when WinSCP is executed via [[scripting#console_interface_tool|console interface (WinSCP3.com)]], the ''/console'' parameter is not necessary. +Parameter ''/console'' executes WinSCP in [[scripting|console (scripting) mode]]. Note that when WinSCP is executed via [[scripting#console_interface_tool|console interface (WinSCP3.com)]], the ''/console'' parameter is not necessary.  
 + 
 +To run batch script either pass script file using ''/script'' parameter or specify the commands directly on command line using ''/command''. In the latter case each following parameter is treated as single command (If the command includes spaces, enclose it in quotes). If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''exit'', regular non-batch mode follows.
When run with ''/update'' parameter, WinSCP only checks for new program version on the program's website. When run with ''/update'' parameter, WinSCP only checks for new program version on the program's website.

Last modified: by martin