0c6c185e_ndows_NT_4_Windows_2000_Syntax__2
[0] %~$PATH:i [1] - [2] 
searches the directories listed in the PATH environment variable and expands %i to the fully 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
Batch files - The FOR command: Windows NT 4/Windows 2000 Syntax
2