Finding the path of the program that will execute from the command line in Windows

后端 未结 3 1453

Say I have a program X.EXE installed in folder c:\\abcd\\happy\\ on the system. The folder is on the system path. Now suppose there is another program

3条回答
  •  野性不改
    2021-01-29 22:52

    As the thread mentioned in the comment, get-command in powershell can also work it out. For example, you can type get-command npm and the output is as below:

提交回复
热议问题