If you are using the default cmd.exe
shell on Windows and are willing to use a second file then you can create a batch file, myScript.bat
, containing this line:
Rscript.exe myScript.R %*
and then run it like this:
myScript
You can include arguments at the end of this line but they should not include embedded spaces.