Reputation: 233
I would like to know where START
command on Windows finds the path to executable. For example, if I run START /W python
and have no path to python.exe
in my PATH
environment variable it correctly finds the path and runs python. In my system it is C:\Python27\python.exe
So, how START
finds the correct path?
P.S.
If I write python via my command prompt (cmd.exe
) it can not find the path to python.
Thank you!
Upvotes: 2
Views: 1332
Reputation: 70923
When you use the START
command from command line or batch file, or when you use the Run
dialog, the systems follows the behaviour documented for ShellExecute
or ShellExecuteEx
API calls.
In general, the application will be searched in:
For a complete description read Application Registration
Upvotes: 7