Question

Tried to use xcopy and excluding a folder and all its subfolders.

C:\Merged\org\a>xcopy /I /E /Y C:\Merged\org\*.* C:\Merged\dest /exclude:"C:\Mer
ged\org\a\*.*"
Can't read file: "C:\Merged\org\a\*.*"

I guess I cannot exclude folder, but only file with xcopy.

So I think of moving to robocopy, but I'm not sure which flags to use.

What is the equivalent robocopy to my above xcopy ?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top