0

In Windows, you can set PATH to specify which executables you can invoke without the need to specify their path.

How can you trace back where Windows found the executable?


Example 1: Let's say you have just installed a tool like (but this question is not limited to NPM):

npm install -g wait-on

This makes the command wait-on URL available, so you can type:

wait-on https://superuser.com

Which will wait until the site is online / available.

But where is wait-on located? Is it an executable or a batch command? How can you trace back the many paths PATH includes?


Example 2: If ypu type

calc

then the Windows calculator opens up. In this case I know that calc.exe is located in C:\Windows\System32 which is part of the PATH variable.


Is there a tool (ideally out of the box, or a batch file) that can trace back where the executable was found?

(of course you can type set PATH which will print all available paths, but this is cumbersome to follow each of them manually)

Matt
  • 374
  • 3
  • 14

0 Answers0