Skip to content
mnaoumov.dev
Go back

where.exe PowerShell alternative

Previously I’ve blogged about where.exe utility

Today I found a true PowerShell alternative

Get-Command -CommandType Application -ErrorAction SilentlyContinue -Name git | Select-Object -ExpandProperty Definition

UPD: Forgot to mention -ErrorAction SilentlyContinue. Without it the command will fail of the application couldn’t be found


Share this post on:

Previous Post
How to reach unreachable or copy files to RDP
Next Post
Kill Bill _W conhost