Solved

XCOPY Syntax - exclude folder with a space in the name

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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 …
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…

821 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