title: Running an Rscript.exe shortcut on Windows 8
body: <p>I have a myfile.R that I am trying source using the shortcut Rscript.exe, and I have the target line in the properties of the Rscript.exe setup as</p>
  
  <pre><code>"C:\Program Files\R\R-3.0.3\bin\i386\Rscript.exe" --e 'source(myfile.R)'
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code> "C:\Program Files\R\R-3.0.3\bin\i386\Rscript.exe" --e myfile.R
   "C:\Program Files\R\R-3.0.3\bin\i386\Rscript.exe" --vanilla myfile.R
   "C:\Program Files\R\R-3.0.3\bin\i386\Rscript.exe" myfile.R
   "C:\Program Files\R\R-3.0.3\bin\i386\Rscript.exe" "myfile.R"
  </code></pre>
  
  <p>and nothing has worked thus far.</p>
  
  <p>In the start in line of the properties of Rscript.exe i have:</p>
  
  <pre><code>"C:\Users\Owner\Documents\rfile"
  </code></pre>
  
  <p>which is the file that myfile.R is in.</p>
  
  <p>When I source that file in R studio it functions great and writes the information to MS Access using the RODBC package just as I hoped, but trying to get the same functionality with the Rscript.exe has eluded me.</p>
  
  <p>I suspect I am missing some kind of command after the .exe or I am missing some code at the begging of myfile.R that will allow it to function with Rscript.exe.</p>
  
  <p>I have spent many hours trying to figure this out, any help will be greatly appreciated.</p>