Differences

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

2015-01-13 2015-01-26
5.6.5 Local custom commands can optionally be executed with remote file paths. (martin) explanation on path format for ! and !& in respect for command type (martin)
Line 17: Line 17:
^ Pattern ^ Command Type ^ Description ^ ^ Pattern ^ Command Type ^ Description ^
| ''!!''  | Any          | Is replaced with exclamation mark (''!''). | | ''!!''  | Any          | Is replaced with exclamation mark (''!''). |
-| ''!''  | Any          | Name of file. Command with the pattern will be executed once for every selected file. In general it should be surrounded with quotes for the command to work with filenames containing spaces. Cannot be combined with pattern ''!&''. | +| ''!''  | Any          | File path (a relative path to a root of an operation, when referring to remote file; an absolute path when referring to a local temporary copy of a remote file). Command with the pattern will be executed once for every selected file. In general it should be surrounded with quotes for the command to work with filenames containing spaces. Cannot be combined with pattern ''!&''. | 
-| ''!&''  | Any          | Quoted, space-delimited list of files. 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. &beta_feature |

Last modified: by martin