Posted by James Burnham on August 12, 2008 at 08:19:27:
In Reply to: Using an exclude file in dos xcopy batch file posted by Jonathan P. Dixon on March 10, 2008 at 20:03:23:
to use /Exclude create a text file and enter the file(s) folder(s) you want to exclude 1 to a line. example you create a file called omit.txt and type in the following
\folder1\
.dat
\folder2\*.exe
your xcopy command would be /exclude:omit.txt
and all of folder1, all .dat files, and all .exe in folder 2 would be excluded. Microsoft doesn't explain this very well at all.