I can't seem to find anything about a Powershell equivalent of the where
command from cmd
. Should I just call it from cmd
or is there something more elegant in PS?
Windows – Equivalent of cmd’s “where” in powershell
powershellwindows
powershellwindows
I can't seem to find anything about a Powershell equivalent of the where
command from cmd
. Should I just call it from cmd
or is there something more elegant in PS?
Best Answer
Use the
Get-Command
commandlet passing it the name of the executable. It populates the Path property of the returned object (of type ApplicationInfo) with the fully resolved path to the executable.