How can I make a program runnable from the commandline without typing its full path?

command-line, windows

Solution

You just need to add the path C:\Python to your Path Environment Variable which can be modified from the Advanced tab of the System Properties control panel.

Problem

I can best explain my question with an example. I recently downloaded Python for Windows, installed to C:\Python. So if I'm in folder X that contains myscript.py, and I want to invoke it, I have to call this: ``` > C:\Python\python.exe myscript.py ``` But it would be super-cool if I could just do this, from within any folder: ``` > python myscript.py ``` How do I make that "global"?

Original source