I using xcopy
, and I am trying to exclude directories with specific ending name from copying.
I've put the bellow line in exclude_files.txt to ignore those directories:
\\\*_bkup\\
Also, the xcopy command is the one bellow:
xcopy "C:\localfolder" "\\\server\remotefolder" /E /exclude:exclusion_list.txt
Only that it just doesn't ignore those directories. What would the workaround be? I need it to ignore these directories in all of the tree's structure, not only in the root.