title: White space in batch file and shelve saving in a different directory
body: <p>I am having problems with Project Multiclipboard from Chapter 8 of the book: <a href="http://automatetheboringstuff.com/chapter8/" rel="nofollow noreferrer">Automate the Boring Stuff</a> and using Python 3.</p>
  
  <p>The first issue is that, suppose my program <code>mcb.pyw</code> is saved in:</p>
  
  <pre><code>C:\Users\myName\folder name
  </code></pre>
  
  <p>where the last folder has a space in the name, my batch file:</p>
  
  <pre><code>@pyw.exe C:\Users\myName\folder name\mcb.pyw %*
  </code></pre>
  
  <p>doesn't seem to work properly from the command line. I can now type in </p>
  
  <pre><code>mcb save keyword
  </code></pre>
  
  <p>into the command line without getting an error, but it's not doing anything. After testing by changing the directory to a folder whose path has no space in it, I've concluded that the problem is because of the space, but I am unsure of how I might go about fixing this. </p>
  
  <p>The second issue is that when the batch file is working, the module shelve seems to be saving the data in the wrong folder. Specifically, I noticed that if I were to run mcb.pyw from the command line, shelve would save the data in <code>C:\Users\myName</code>, which is also the default directory when you open the command windod, instead of the folder <code>C:\Users\myName\folderName</code>, where <code>mcb.pyw</code> and <code>mcb.bat</code> are saved. </p>
  
  <p>I have gotten around this by including the lines: </p>
  
  <pre><code>import os
  os.chdir('C:\\Users\\myName\\folderName')
  </code></pre>
  
  <p>However, is there any other way to solve this issue? Why is shelve saving in <code>C:\Users\myName</code> instead of the folder where everything is already saved? </p>
  
  <p>I apologise if I have made any ettiquette or formatting problems. If you let me know what I did wrong I will do my best to fix it as soon as I can, thank you! </p>