Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Windows 2000

xcopy exclude switch

 
Jump to:  
 
Richard
PostPosted: Wed Jul 30, 2008 5:49 am    Post subject: xcopy exclude switch
       
Hi

I can't seem to get the exclude switch to work in the xcopy command. I would
like to exclude 'folder1' in the batch folder. I have tried:

xcopy C:\Batch D:\Batch /D /C /E /H /Y /EXCLUDE:C:\Batch\Folder1
xcop "C:\Batch" "D:\Batch" /D /C /E /H /Y /EXCLUDE:C:\Batch\Folder1

Help appreciated.

Many thanks in advance
RIchard
 

 
Richard
PostPosted: Wed Jul 30, 2008 6:26 am    Post subject: Re: xcopy exclude switch
       
Managed to overcome the issue.

Thanks anyway

"Richard" <richardbee@hotmail.com> wrote in message
news:eCAQqih8IHA.5052@TK2MSFTNGP03.phx.gbl...
Quote:
Hi

I can't seem to get the exclude switch to work in the xcopy command. I
would
like to exclude 'folder1' in the batch folder. I have tried:

xcopy C:\Batch D:\Batch /D /C /E /H /Y /EXCLUDE:C:\Batch\Folder1
xcop "C:\Batch" "D:\Batch" /D /C /E /H /Y /EXCLUDE:C:\Batch\Folder1

Help appreciated.

Many thanks in advance
RIchard

 

 
Larry Timms
PostPosted: Thu Jul 31, 2008 2:53 am    Post subject: Re: xcopy exclude switch
       
Richard wrote:
Quote:
Managed to overcome the issue.

Mind telling us? :-)

Larry @ hasn't worked with DOS for a while...
 

 
Pegasus (MVP)
PostPosted: Thu Jul 31, 2008 3:20 am    Post subject: Re: xcopy exclude switch
       
"Larry Timms" <roadrunner9119@yahoo.junktrap.com> wrote in message
news:328505be663eb38c4d6f936eb01ebfa6@grapevine.islandnet.com...
Quote:
Richard wrote:
Managed to overcome the issue.

Mind telling us? :-)

Larry @ hasn't worked with DOS for a while...

He realised that the command
xcopy C:\Batch D:\Batch /D /C /E /H /Y /EXCLUDE:C:\Batch\Folder1
should read
xcopy C:\Batch D:\Batch /D /C /E /H /Y /EXCLUDE:C:\Batch\Exclude.txt

His initial thought was that the parameter following the /Exclude
says which files/folders should be excluded. Hen then realised
that this parameter must be the name of the text file that enumerates
the exclusions. Unfortunately he has yet to realise that answers to
posts are of value to other people too.
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

sklep komputerowy kalkulator kredytowy Podróż na Księżyc Bmibaby BRC