Command Tokens
Tokens are used to include variable elements within your commands and they are replaced with the actual value during execution.
Tokens |
Description |
%f |
The name of the selected item, this can be a file or a folder name. |
%n |
The name of the selected file without the the extension. "name.ext" returns "name" |
%e |
The extension of the selected file without the name. "name.ext" returns ".ext" |
%s |
The size of the selected item in bytes. |
%m |
The modified date/time of the selected item in Unix date format (UTC). |
%o |
The owner of the selected item. |
%g |
The group of the selected item. |
%p |
The absolute path of the current directory. |
%c |
The content of the clipboard. |
%d |
Prompt for user input. you can use \n to split long text into multiple lines, and \] to escape ] within the caption text. |
%d[<caption>] |
Prompt for user input. By quoting the caption you can use ] without having to escape it. |
%[<number>] |
Returns value of the Nth %d prompt. |
%b[<caption>] |
Matches folder bookmark caption and replaces it with bookmark path. |
In some special situations it might be necessary to completely disable tokens and this can be done by with the following command:
/set ParseTokens 0 |
And to turn tokens back on, use the following command:
/set ParseTokens 1 |
When the command script finishes the ParseTokens value is automatically reset back to on.