where.exe
searches executables and scripts in directories that are listed in the PATH
environment variable. By using /R
, it recursively searches for files below the specified directory. where.exe
: C:\Users\rene> where where C:\Windows\System32\where.exe
where
for the where-object
cmdLet. These two where
commands have nothing to do with each other! where.exe
is able to locate cmd.exe
batch files (*.bat
), it does not find PowerShell scripts (*.ps1
). (get-command script.ps1).source
which
.