I created a robocopy script and wanted to exclude 2 folders from copying. The first is [highlight #FCE94F]AppData[/highlight] and the second is [highlight #FCE94F]OneDrive[/highlight]. I have tried to repeat the XD switch but that did not work (/XD AppData /XD OneDrive). I then tried the text below and that did not work. Does anyone know if it is possible to exclude two folders in one command? If yes, what is the correct context?
Thank you,
Dom
Robocopy "C:\Users\Dominic" "S:\TheBackup" /MIR /XA:SH /[highlight #FCE94F]XD AppData/OneDrive[/highlight] /XJD /R:5 /W:15 /MT:32 /V /NP /LOG:Backup.log
Thank you,
Dom
Robocopy "C:\Users\Dominic" "S:\TheBackup" /MIR /XA:SH /[highlight #FCE94F]XD AppData/OneDrive[/highlight] /XJD /R:5 /W:15 /MT:32 /V /NP /LOG:Backup.log