Let's say I have an executable that I can invoke in Cmd.exe regardless of what directory I'm in because the executable's directory resides in one of the directories specified in
I'd like to know where exactly it resides, though, i.e. which of those directories specified in
%PATH% it resides in. How do I get that information without manually checking every one of those folders?