Solved

XCOPY Syntax - exclude folder with a space in the name

Posted on 2007-12-03
5
3,349 Views
Last Modified: 2012-08-14
What's wrong with this XCOPY syntax:

xcopy "W:\Accreditation & Quality" "F:\Backup" /S /E /Y /EXCLUDE: & "Regulation and Quality"
0
Comment
Question by:CuriousOne1
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:cgordon81
ID: 20401427
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
 
LVL 32

Accepted Solution

by:
and235100 earned 50 total points
ID: 20401520
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
 

Author Comment

by:CuriousOne1
ID: 20407950
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
 

Author Comment

by:CuriousOne1
ID: 20409002
my apologies. I should read before i write. the link provided gave me the info I needed. Thanks.
0
 
LVL 32

Expert Comment

by:and235100
ID: 20409696
Great.
Thank you.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question