@SHELLVERB
— Returns the
command string for the specified shell verb.
Syntax:
%@SHELLVERB[
ftype,
verb,
flags]
ftype | either an extension or a descriptive file type |
verb | if omitted, the default verb is used |
flags | bitmapped: |
1 — user-specific file association | |
2 — systemwide file association | |
128 — map dangerous characters to SafeChars |
Verb must be the actual verb name, not its cosmetic or “menu” name.
If bit 7 of flags is set, the following characters in the command string will be replaced with high-order Unicode equivalents:
Character: | ASCII: | Remapped to: | |
---|---|---|---|
percent sign | % | 37 / 0x25 | U+FF05 |
ampersand | & | 38 / 0x26 | U+FF06 |
open parenthesis | ( | 40 / 0x28 | U+FF08 |
close parenthesis | ) | 41 / 0x29 | U+FF09 |
less-than sign | < | 60 / 0x3C | U+FF1C |
greater-than sign | > | 62 / 0x3E | U+FF1E |
open bracket | [ | 91 / 0x5B | U+FF3B |
close bracket | ] | 93 / 0x5D | U+FF3D |
caret | ^ | 94 / 0x5E | U+FF3E |
grave accent / backquote | ` | 96 / 0x60 | U+FF40 |
vertical bar | ¦ | 124 / 0x7C | U+FF5C |
If the extension, filetype, verb, or command string is unknown, this
function returns the string *ERROR*
.
See also: the SHELLVERB
command, which displays or changes file associations and shell verbs.