title: python:os.system(r'cd foo') & os.chdir()
body: <p>I was having a doubt.When I tried <code>os.system(r'cd F:\')</code> I was still in the directory where I started the interpreter.But `os.chdir()' worked fine.I'll show my code below:</p>
  
  <pre><code>&gt;&gt;&gt; import os
  &gt;&gt;&gt; os.system('F:')
  0
  </code></pre>
  
  <p>By running the <code>os.system('dir')</code> I found that I was still in the directory C:\python34.</p>
  
  <p>Then I tried this:</p>
  
  <pre><code>&gt;&gt;&gt; os.chdir('F:')
  </code></pre>
  
  <p>By running <code>os.system('dir')</code> I found that it worked fine.</p>
  
  <p>Why is <code>os.system('F:')</code> not working?
  I would be pleased to get a help.</p>