Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XCOPY Syntax - exclude folder with a space in the name

Posted on 2007-12-03
5
Medium Priority
?
3,472 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 200 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

885 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