1.

Solve : Xcopy Exclude?

Answer»

Need help on syntax for Xcopy Exclude
This works fine:
Xcopy /S /I /C /D /H /Y "C:\Documents and Settings" "F:\Documents and Settings"
But this doesn't:
Xcopy /S /I /C /D /H /Y "C:\Documents and Settings" "F:\Documents and Settings" /Exclude:"New York Times" I GET "Can't read file "New York Times"
Nor does this:
Xcopy /S /I /C /D /H /Y "C:\Documents and Settings" "F:\Documents and Settings" /Exclude:"\New York Times\" I get "Can't read file "\New York Times\"

Any suggestions? Thanks.Figured it out! Created a file NAMED Excludes.Txt containing, one name on each line, a list of the files and folders to be excluded. Then used the following syntax: Xcopy from to /Exclude:Excludes.Txt



Discussion

No Comment Found