'Batch file with reltive paths with spaces to run an r script with Rscript.exe
I would like to have a portable R setup and a script that runs to clean and transform files. This works on my computer when there are no spaces and I am not using a OneDrive.
%~dp0\R-Portable\App\R-Portable\bin\Rscript.exe %~dp0\pull_many_xlsx_real_data.R
But my colleagues have a laptop configured so that their whole desktop and cocuments content is on a OneDrive and when they fire up my start.bat file, they receive a message that:
"There is a no OneDrive command" ie the path ends on a space and the batch interpreter thinks it is a command.
How can the path be modified so that it understands and interprets correctly the relative paths with spaces?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
