Link to home
Start Free TrialLog in
Avatar of gbm33
gbm33

asked on

How to Use /Exclude in XCOPY command

How should the /exclude:filename be used?

Where must filename reside?  Must the full path name be used?
In what format must filename be?  I assume one could write it with Notepad.  But should it be a .txt file?
Can you give me some examples of filename, name and content?
ASKER CERTIFIED SOLUTION
Avatar of brianadkins
brianadkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gbm33
gbm33

ASKER

Where must filename reside? Must if be in the same folder as the .bat file which contains the XCOPY command?
could be in the same folder (probably the best practice), but you can specify the full path of the file on the xcopy command line.

check out page 5 of this document (highlighted lines):
http://www.ekho.com/Training_Videos/XCOPY_NOTES.pdf
Avatar of gbm33

ASKER

Thanks for the tips