In linux, we have "which" command to find out path of executable. what is its windows equivalent? Is there any powershell command for doing that?
Thank you,
|
In linux, we have "which" command to find out path of executable. what is its windows equivalent? Is there any powershell command for doing that? Thank you, | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Yes,
If you want to limit the commands to just executables:
Will find all exes in your path. There is an alias for interactive use:
For more info, run | |||
|
feedback
|
|
Some versions of Windows (I think Windows 2003 and up) have the where command:
| |||
|
feedback
|
|
In addition to user10404, the help command will work on aliases, so you can use the same command name (gcm) for help and interactive use:
| ||||
|
feedback
|