Search notes:

where.exe

Find the location of executables.
By default, 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 is where.exe:
C:\Users\rene> where where
C:\Windows\System32\where.exe

Notes for using where.exe in PowerShell

There is also a (default) PowerShell alias where for the where-object cmdLet. These two where commands have nothing to do with each other!
While where.exe is able to locate cmd.exe batch files (*.bat), it does not find PowerShell scripts (*.ps1).
However, in PowerShell, the location of a PowerShell script can be found like so
(get-command script.ps1).source

See also

The shell command which.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1746943953, '3.137.185.239', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/dirs/Windows/System32/where_exe(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78