• Member for 8 years, 1 month
  • Last seen more than 2 years ago
  • Chicago, IL
PowerShell equivalent to the Unix `which` command?
77 votes

As of PowerShell 3.0, you can do (Get-Command cmd).Path Which also has the benefit over vanilla Get-Command of returning a System.String so you get a clean *nixy single line output like you may be ...

View answer