%~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
qualified name of the first one found.Â If the
environment variable name is not defined or the
file is not found by the search, then this
modifier expands to the empty string

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 %*