Differences

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

2015-01-27 2015-02-18
guide_custom_commands_automation (martin) releasing 5.7 stable, removing &beta tags (or replacing with &recent) (martin)
Line 9: Line 9:
  * Remote or local commands that do not work with files. These can be executed any time.   * Remote or local commands that do not work with files. These can be executed any time.
  * Remote commands that are executed on remote servers with remote files. These commands can modify the files. You must have remote files selected first in order to execute the command.   * Remote commands that are executed on remote servers with remote files. These commands can modify the files. You must have remote files selected first in order to execute the command.
-  * Local commands that are executed on the local machine with remote files downloaded to a [[temp_folders|temporary folder]]. You must have remote files selected first in order to execute the command. If the command modifies the files, the changes are uploaded to the server (&beta_feature) +  * Local commands that are executed on the local machine with remote files downloaded to a [[temp_folders|temporary folder]]. You must have remote files selected first in order to execute the command. If the command modifies the files, the changes are uploaded to the server. 
-  * Local commands that are executed on the local machine with paths to a remote files. Such commands will typically operate on the files over their own session (use ''!S'' pattern to pass current session settings to the command). The command may use [[guide_custom_commands_automation|WinSCP .NET assembly or scripting]]. &beta_feature+  * Local commands that are executed on the local machine with paths to a remote files. Such commands will typically operate on the files over their own session (use ''!S'' pattern to pass current session settings to the command). The command may use [[guide_custom_commands_automation|WinSCP .NET assembly or scripting]].
  * Special type is a local command that is executed with both local and remote files. This is particularly useful for running "diff" tools. This type is available only with the [[ui_commander|Commander interface]]. You can execute these commands on a set of remote files against the the same number of local files (once for each pair). Another option is to execute it on a set of remote files against one local file (once for each remote file) and vice versa.   * Special type is a local command that is executed with both local and remote files. This is particularly useful for running "diff" tools. This type is available only with the [[ui_commander|Commander interface]]. You can execute these commands on a set of remote files against the the same number of local files (once for each pair). Another option is to execute it on a set of remote files against one local file (once for each remote file) and vice versa.
Line 20: Line 20:
| ''!&''  | Any          | Quoted, space-delimited list of paths to files (see ''!'' for path format explanation). Command with the pattern will be executed only once for all selected files. Cannot be combined with pattern ''!'' and executed recursively. | | ''!&''  | Any          | Quoted, space-delimited list of paths to files (see ''!'' for path format explanation). Command with the pattern will be executed only once for all selected files. Cannot be combined with pattern ''!'' and executed recursively. |
| ''!/''  | Any          | Current remote path. The path always ends slash. | | ''!/''  | Any          | Current remote path. The path always ends slash. |
-| ''!S''  | Any          | Current [[session_url|session URL]]. You can use it to pass current session data to another instance of WinSCP (using [[commandline|command-line]] or scripting command ''[[scriptcommand_open|open]]''), or code using WinSCP .NET assembly (see ''[[library_sessionoptions_parseurl|SessionOptions.ParseUrl]]''). Password is included if [[security_credentials|stored or remembered]] only. &beta_feature |+| ''!S''  | Any          | Current [[session_url|session URL]]. You can use it to pass current session data to another instance of WinSCP (using [[commandline|command-line]] or scripting command ''[[scriptcommand_open|open]]''), or code using WinSCP .NET assembly (see ''[[library_sessionoptions_parseurl|SessionOptions.ParseUrl]]''). Password is included if [[security_credentials|stored or remembered]] only. |
| ''!@''  | Any          | Current session hostname. | | ''!@''  | Any          | Current session hostname. |
| ''!U''  | Any          | Current session username. | | ''!U''  | Any          | Current session username. |

Last modified: by martin