title: Python code executes from interpreter but not from Windows Command Prompt
body: <p>I made a program, stored in a folder in <code>C:/Python27</code> where I keep the <code>python.exe</code> file. In this program I do some I/O to and from files. When I run the file in the interpreter like this:</p>
  
  <pre><code>myProgram.function("C:/Pyhton27/data")
  </code></pre>
  
  <p>it works fine.</p>
  
  <p>When I try in the command prompt (<code>cmd.exe</code>) I set up my path, then I do:</p>
  
  <pre><code>C:/Python27/python C:/Python27/myProgram C:/Python27/data
  </code></pre>
  
  <p>I don't get any error messages and the program returns the print messages saying everything went fine. But there is no new output to the file when I change the data.</p>
  
  <p>Does anyone know what I'm doing wrong?</p>