Displaying 1 result from an estimated 1 matches for "dirnum".
Did you mean:
dignum
2012 Feb 24
2
shell command with Robocopy error
...ertain 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' h...