title: Space in argument causing errors in Windows Command Prompt
body: <p>I'm trying to run an R script through the command prompt. My operating system is Windows 10. I'm having trouble running the code because there is a space in the file path of my argument. This is what I paste into the command prompt.</p>
  
  <pre><code>"C:\Program Files\R\R-3.4.3\bin\Rscript.exe" "C:\Users\Scott\Google Drive\RScriptsB\Bundle_Runner.R"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/W07QL.png" rel="nofollow noreferrer">I get this error:</a></p>
  
  <pre><code>The filename, directory name, or volume label syntax is incorrect.
  </code></pre>
  
  <p>However, when I run it using a file path with no spaces, it runs fine.</p>
  
  <pre><code>"C:\Program Files\R\R-3.4.3\bin\Rscript.exe" "C:\Users\Scott\Desktop\Bundle_Runner.R"
  </code></pre>
  
  <p>The same behavior happens when I schedule the task through Task Scheduler: it doesn't work with the space, and it works when I remove the space from the file path.</p>
  
  <p>I'm using Google Drive to sync work from multiple computers, so I'd like to be able to run my scripts using the file path with a space.</p>
  
  <p>Any solutions?</p>