Reputation: 1010
I'm trying to run a batch file off of a Server in an R script.
shell(shQuote(paste("\\\\SERVER\\Folder1\\Folder2\\File.bat", var1, var2), "cmd"))
However, "I get a UNC paths are not supported" error. I believe there is something about how I need to handle the quotes. If I want to run the batch file off of the cmd window, I have to put quotes around the file path.
Upvotes: 2
Views: 1350
Reputation: 1010
This solved the problem:
shell(paste(shQuote("\\\\Server\\d$\\SERVER\\Folder1\\Folder2\\file.bat"), var1, var2), "cmd")
Upvotes: 1