I'm trying to run an executable from the command line. Here is the full path to the .exe:
C:\Program Files\R\R-3.0.2\bin\Rscript.exe
So, the command I type into the command line to open this .exe is:
"C:\Program Files\R\R-3.0.2\bin\Rscript.exe"
This works fine on my PC, but on another PC double quotes do not seem to work when dealing with file names that include spaces. I get the following error on that PC:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
How can I resolve this problem?
This is on Windows 7.
c:\prog
and press TAB until you get the correct top directory, type` or
\R` and continue with the TAB key until you reach the correct exe. Then copy the result and try to paste/run it in another window to make sure works. Are you running it directly in command prompt or in acmd /c
session or in a batch? You could try double-double quoting it""c:\Program Files""
– Zina Mar 31 '16 at 16:38