DISQUS

Tech-Recipes: XCOPY command : Using the /EXCLUDE flag | Batch file programming | Tech-Recipes

  • Mustafa · 1 year ago
    very nice, I didn't try it yet, but I'm sure in I will in future . .
  • 13eastie · 11 months ago
    Okay, but how do you go about using a an exclude file whose absolute path contains spaces e.g. one that is located in the "My Documents" tree?
  • Joe Webb · 11 months ago
    Just guessing here but if you can't quote the file path, i.e., "My Documents", then you should at least be able to use the 8dot3 equivalent. (MYDOCU~1).
  • DizzyGoldfish · 9 months ago
    Too bad I tried excluding each file extension within the command before reading your post :-)

    Thanks for the help!
  • Steve · 6 months ago
    You need to convert the path to short (i.e. DOS 8.3) format. then it will work OK.

    e.g. "My Documents" becomes MYDOCU~1
  • JohnG · 6 months ago
    Any clue how to exclude a folder from being copied? Say for instance I have folder "X" on my desktop, but don't want it or its contents copied when I run my batch backup that copies everything else on my desktop. Can't seem to find anything regarding this.
  • kledi · 6 months ago
    Thank a lot

    Its very clear