The modifiers can be combined to get compound results: %~dp1 - expands %1 to a drive letter and path only %~nx1 - expands ...

The modifiers can be combined to get compound results:            %%~dp1       - expands %%1 to a drive letter and path only          %%~nx1       - expands %%1 to a file name and extension only          %%~dp$PATH:1 - searches the directories listed in the PATH                         environment variable for %%1 and expands to the                         drive letter and path of the first one found.          %%~ftza1     - expands %%1 to a DIR like output line        In the above examples %%1 and PATH can be replaced by other      valid values.  The %%~ syntax is terminated by a valid argument      number.  The %%~ modifiers may not be used with %%*
English
English (United States)
日本語
Japanese