Solved

XCOPY Syntax - exclude folder with a space in the name

Posted on 2007-12-03
5
3,338 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now