Pathname editing can be applied to any command, variable or history substitution. Any number in a row can be applied.
Operator | Name | Description | Result |
---|---|---|---|
:h | head |
Directory containing |
x |
:r | root |
Path without .ext |
x\y |
:t | tail |
Simple filename |
y.z |
:b | base |
Filename without .ext |
y |
:e | extension |
.ext without the . |
z |
:f | fullpath |
Fully-qualified name |
c:\Users\Public\x\y.z |
:m | mixedpath |
Mixed-case pathname |
x\Y.c |
:M | fullmixedpath |
Mixed-case pathname |
c:\Users\Public\x\Y.z |
:A | shortname |
Short 8.3 filename |
|
:L | longname |
Long filename |
The shortname function depends on support from the filesystem. Long filenames read over the network from an HPFS partition do not have shortnames, for example.
Substitution modifiers
Variable substitutions
History recall
Command substitution
Tutorial: Pathname editing
Tutorial: Variables
Tutorial: History
Tutorial: Command substitution