Xcopy Command excluding files and folders [duplicate]
This question already has an answer here: /exclude in xcopy just for a file type 4 answers I want to copy files and folders in a directory to another folder excluding a list of files and folders.Is that possible. I was just trying to copy excluding file : xcopy c:\t1 c:\t2 /EXCLUDE:exclusion.txt But it keeps saying read cant read file : exclusion.txt Can anyone help me on this? Thanks Techchrish Just give full path to exclusion file: eg.. -- no - - - - - xcopy c:\t1 c:\t2 /EXCLUDE:list-of-excluded-files.txt correct - - - xcopy c:\t1 c:\t2 /EXCLUDE:C:\list-of-excluded-files.txt In this example