Quantcast
Channel: What is Windows' equivalent of the "which" command in Unix? Is there an equivalent PowerShell command? - Super User
Browsing all 7 articles
Browse latest View live

Answer by Joma for What is Windows' equivalent of the "which" command in...

Cmdwhere C:\Users\X>where pingC:\Windows\System32\PING.EXEC:\Users\X>PowershellGet-Command PS C:\Users\X> Get-Command pingCommandType Name Version Source----------- ---- -------...

View Article


Answer by drkvogel for What is Windows' equivalent of the "which" command in...

where.exe explicitly rather than where works for me in PowerShell:PS C:\Users\birdc> where pingPS C:\Users\birdc> where.exe pingC:\Windows\System32\PING.EXE

View Article


Answer by Manu for What is Windows' equivalent of the "which" command in...

If you want to make it short, create a one line which.cmd file with the contentecho %~$PATH:1This will search the first parameter (%1) fed to the script and display the full path of found file.Good...

View Article

Answer by yzorg for What is Windows' equivalent of the "which" command in...

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:help gcm -Parameter *# orman gcm -Par *

View Article

Answer by Randy Levy for What is Windows' equivalent of the "which" command...

Newer versions of Windows (I think Windows 2003 and up) have the where command:C:\>where pingC:\Windows\System32\PING.EXEAnd for PowerShell, explicitly add the .exe suffix:PS C:\>where.exe...

View Article


Answer by user10404 for What is Windows' equivalent of the "which" command in...

Yes, Get-Command will find all commands including executables:PS\> Get-Command ipconfigIf you want to limit the commands to just executables:PS\> Get-Command -CommandType ApplicationWill find all...

View Article

What is Windows' equivalent of the "which" command in Unix? Is there an...

In Linux, we have the "which" command to find out the path of an executable.What is its Windows equivalent? Is there any PowerShell command for doing that?

View Article
Browsing all 7 articles
Browse latest View live