how to run python files in windows command prompt?
<p>I want to run a python file in my command prompt but it does nothing.
These are the screen shots of my program i am testing with and the output the command prompt gives me.
<a href="http://i.stack.imgur.com/yHFIW.png" rel="nofollow"><img src="http://i.stack.imgur.com/yHFIW.png" alt="enter image description here"></a></p>

<p><a href="http://i.stack.imgur.com/Fz398.png" rel="nofollow"><img src="http://i.stack.imgur.com/Fz398.png" alt="enter image description here"></a></p>

<p>You have to <code>install</code> <a href="https://www.python.org" rel="nofollow">Python</a> and add it to <a href="https://docs.python.org/2/using/windows.html" rel="nofollow">PATH</a> on <code>Windows</code>. After that you can try:</p>

<pre><code>python `C:/pathToFolder/prog.py`
</code></pre>

<p>or go to the files directory and execute:</p>

<pre><code>python prog.py
</code></pre>

python python-2.7 command-line cmd command