title: How to run a R script from the task scheduler via a .bat file
body: <p>I'm a novice when it comes anything outside of coding for R. I've looked up many similar posts but they aren't detailed enough as I'm unfamiliar with many of the terms.</p>
  
  <p>I have a simple R script that's saved on the C: drive. I want it to run from a .bat file for now, which I will later use in the task scheduler to run automatically everyday once it's working.</p>
  
  <p>I saw many posts pointed to this <a href="http://turing.une.edu.au/~stat356/Rbatch.html" rel="nofollow">link</a>.</p>
  
  <p>The link mentions the working directory but then never mentions anything it again. How does windows command know the folder of the .R script if it's never seems to be entered? Right now I've changed the working directory:</p>
  
  <pre><code>cd C:\Program Files\R\R-3.0.1\bin\x64
  </code></pre>
  
  <p>I don't know where to go from there.</p>
  
  <p>Edit: I'm running windows 7</p>