Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example if I want to run python.exe without being inside the python folder, how can I do this?

I'm here --> C:\

I want to call --> C:\Python27\python

Without having to cd Python27

share|improve this question

migrated from stackoverflow.com Jun 27 '11 at 9:03

This question came from our site for professional and enthusiast programmers.

3 Answers 3

That would be the following command:

share|improve this answer
lol thanks. I didn't know you needed to call the full path –  Takkun Jun 26 '11 at 20:24
And as Random mentions below, you don't need the `c:\` part since that's your current directory, so it doesn't need to be an absolute path. –  JdeBP Jun 27 '11 at 10:02
@JdeBP: Oh, I missed that. Well, at least this will work anywhere! –  minitech Jun 27 '11 at 15:43
Indeed, it has that advantage. What M. Takkun needs to know is that %PATH% searching occurs when the name has no path prefix (no drive nor directory) at all. Otherwise the name is taken to be a relative or absolute pathname and is used as-is. –  JdeBP Jun 28 '11 at 9:30

Python27\python.exe That should do it.

share|improve this answer

You can also add the exe to the system path variable, which will make it available from anywhere in your system.

Go to System->Environment Variables->Path (or something similar) and append the path to the end of the list.

May require a restart.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.