[R] shell command with Robocopy error

Aldo michael.v.clawson at gmail.com
Fri Feb 24 19:39:02 CET 2012


Ok so my problem is I am running a shell command to copy certain file types
from one directory to another and it returns multiple errors

the code is

models=c("1sFE1cFE","1sFE1cFEp")	
	for(m in 1:length(models)){
		shell(paste("robocopy C:\\Sim_Test_1\\Sim",models[m]," ","
C:\\Sim_Test_1\\SimArchive\\Sim",dirnum,"\\pinrepstd *.std *.rep *.tpl *.pin
*crap.txt",sep=""),wait=TRUE)
	}

the errors are 

Warning messages:
1: running command 'C:\WINDOWS\system32\cmd.exe /c robocopy
C:\Sim_Test_1\Sim1sFE1cFE  C:\Sim_Test_1\SimArchive\Sim001\pinrepstd *.std
*.rep *.tpl *.pin *crap.txt' had status 1 
2: In shell(paste("robocopy C:\\Sim_Test_1\\Sim", models[m], " ", "
C:\\Sim_Test_1\\SimArchive\\Sim",  :
  'robocopy C:\Sim_Test_1\Sim1sFE1cFE 
C:\Sim_Test_1\SimArchive\Sim001\pinrepstd *.std *.rep *.tpl *.pin *crap.txt'
execution failed with error code 1
3: running command 'C:\WINDOWS\system32\cmd.exe /c robocopy
C:\Sim_Test_1\Sim1sFE1cFEp  C:\Sim_Test_1\SimArchive\Sim001\pinrepstd *.std
*.rep *.tpl *.pin *crap.txt' had status 3 
4: In shell(paste("robocopy C:\\Sim_Test_1\\Sim", models[m], " ", "
C:\\Sim_Test_1\\SimArchive\\Sim",  :
  'robocopy C:\Sim_Test_1\Sim1sFE1cFEp 
C:\Sim_Test_1\SimArchive\Sim001\pinrepstd *.std *.rep *.tpl *.pin *crap.txt'
execution failed with error code 3

I am not sure what the error codes mean, is there a way to decipher them?



--
View this message in context: http://r.789695.n4.nabble.com/shell-command-with-Robocopy-error-tp4418254p4418254.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list