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, |
|||
|
|
|
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 |
|||
|
|
|
Some versions of Windows (I think Windows 2003 and up) have the where command:
|
|||
|
|
|
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:
|
||||
|
|