Search notes:

Windows environment variable: PATHEXT

The environment variable %PATHEXT% contains a list of file extensions (with the corresponding dot) that are separated by a semicolon (as are the paths in %PATH%).
PATHEXT is used to start a program, batch file or script without explicitly specifying its suffix in cmd.exe or its start command.
The extensions usually specify a file type that can somehow be executed. Commonly seen extensions include:
Interestingly, the powershell script suffix .ps1 is not included by default.
There seems to be no Unix equivalent: http://unix.stackexchange.com/questions/280528.

PowerShell

In PowerShell, the extension of a (non-PowerShell script such as a Perl or Python script) must be listed in PATHEXT in order for the script to be executed in the current console (rather than spawning a new console in which the script is executed).
This behavior does not seem to be documented and might even be a bug, see also

See also

Windows environment variables

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/...', 1759965461, '216.73.216.133', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/development/environment-variables/PATHEXT(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78