Differences

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

2005-04-26 2005-05-04
integration_app#opening_current_session_in_putty (martin) 3.7.5 custom command not working with files (martin)
Line 15: Line 15:
The custom command is [[ui_pref_commands|predefined]] command, which can contain several patterns, which WinSCP replaces for example with names of files selected in panel, see below. For example pre-defined custom command //Touch//, defined as ''touch "!"'', calls ''touch'' command on every selected file in remote panel. The custom command is [[ui_pref_commands|predefined]] command, which can contain several patterns, which WinSCP replaces for example with names of files selected in panel, see below. For example pre-defined custom command //Touch//, defined as ''touch "!"'', calls ''touch'' command on every selected file in remote panel.
 +However you can have even custom command without patterns, just to avoid typing it again every time.
==== Types of Custom Commands ==== ==== Types of Custom Commands ====
-There are basically three types of custom commands: +There are basically four types of custom commands: 
-  * Remote commands are executed on the remote servers with the remote files. These commands can modify the files. +  * Remote or local commands that does not work with files. These can be execute any time. 
-  * Local commands are executed on the local machine with the remote files downloaded to [[temp_folders|temporary folder]]. It makes no sense for the command to modify the files, because they are not uploaded back after the command finishes.+  * Remote commands are executed on the remote servers with the remote files. These commands can modify the files. You need to have selected remote files first to execute the command
 +  * Local commands are executed on the local machine with the remote files downloaded to [[temp_folders|temporary folder]]. It makes no sense for the command to modify the files, because they are not uploaded back after the command finishes. You need to have selected remote files first to execute the command.
  * Special type is local command that is executed both with local and remote files. This is particuarly useful for running "diff" tools. This type is available only with [[ui_commander|Norton Commander interface]]. You can execute such command for set of remote files against the the same number or local files (once for each pair). Another option is to execute it for set of remote files against one local file (once for each remote file) and vice versa.   * Special type is local command that is executed both with local and remote files. This is particuarly useful for running "diff" tools. This type is available only with [[ui_commander|Norton Commander interface]]. You can execute such command for set of remote files against the the same number or local files (once for each pair). Another option is to execute it for set of remote files against one local file (once for each remote file) and vice versa.

Last modified: by martin