title: change directory in batch file using variable
body: <p>Here's the question:</p>
  
  <pre><code>set Pathname = C:\Program Files
  cd %Pathname%
  pause
  </code></pre>
  
  <p>The above doesn't change the directory, as I would expect. Can anybody please tell me why?</p>