XCOPY Syntax - exclude folder with a space in the name

What's wrong with this XCOPY syntax:

xcopy "W:\Accreditation & Quality" "F:\Backup" /S /E /Y /EXCLUDE: & "Regulation and Quality"
CuriousOne1Asked:
Who is Participating?
 
and235100Commented:
The /EXCLUDE switch is meant to be a list - normally in a txt file.
So - create a new txt file - i.e. exclude.txt
More here: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_21351968.html
0
 
cgordon81Commented:
I think what is in question is the last part of your argument:      /EXCLUDE: & "Regulation and Quality"  

I see no problem with your other paramaters conflicting

What are you trying to accomplish with:   /EXCLUDE: & "Regulation and Quality"   ?
0
 
CuriousOne1Author Commented:
Okay, seems that i've misunderstood how to use the EXCLUDE swith.

I have a folder with password permissions on it that I would like to exclude from my backup.

The folder name to exclude = "Regulation and Quality".

How can I exclude the folder "Regulation and Quatlity" using the XCOPY command?
0
 
CuriousOne1Author Commented:
my apologies. I should read before i write. the link provided gave me the info I needed. Thanks.
0
 
and235100Commented:
Great.
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.