As I sometimes have path problems, where one of my own cmd scripts is hidden (shadowed) by another program (earlier on the path), I would like to be able to find the full pa
try this
set a=%~$dir:1 If "%for%"=="" (Echo %1 not found) else (echo %1 found at %a%)