Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Windows 7, cmd:

C:\>python
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\>python.exe
(works)

C:\>bash
'bash' is not recognized as an internal or external command,
operable program or batch file.
C:\>bash.exe
(works)

etc...

Is there a way to make e.g. python.exe run when I type "python"?

share|improve this question
up vote 7 down vote accepted

Make sure .exe is in your %PATHEXT%:

C:\>set pathext
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pl

When you run python, Windows tries all extensions listed in that environment variable.

C:\>set pathext=.exe;%pathext%
share|improve this answer
    
simple and kewl :) – frnhr Sep 17 '11 at 11:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .