Windows' equivalent of the "which“ command in Unix: where and Get-Command

http://superuser.com/questions/207707/what-is-windows-equivalent-of-the-which-command-in-unix-is-there-an-equivale Get-Command will find all commands including executables:
PS\> Get-Command ipconfig
If you want to limit the commands to just executables:
PS\> Get-Command -CommandType Application

WHERE (Windows 2003 + )
http://ss64.com/nt/where.html
Locate and display files in a directory tree. 
The WHERE command is roughly equivalent to the UNIX 'which' command. By default, the search is done in the current directory and in the PATH.

WHERE /r c:\ Zappa
WHERE /r \\Server1\Share1 /e Zappa.*

No comments:

Post a Comment