Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
2000
active_directory
advanced_server
applications
cmdprompt.admin
developer
dns
enable
fax
file_system
games
general
group_policy
hardware
msi
multimedia
netware
networking
new_user
printing
ras_routing
registry
security
setup
setup_deployment
setup_upgrade
termserv.apps
termserv.clients
windows_update
  
 
date: Wed, 30 Jul 2008 15:49:26 +0800,    group: microsoft.public.win2000.general        back       


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
date: Wed, 30 Jul 2008 15:49:26 +0800   author:   Richard

Re: xcopy exclude switch   
Managed to overcome the issue.

Thanks anyway

"Richard"  wrote in message
news:eCAQqih8IHA.5052@TK2MSFTNGP03.phx.gbl...
> 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
>
>
date: Wed, 30 Jul 2008 16:26:02 +0800   author:   Richard

Re: xcopy exclude switch   
Richard wrote:
> Managed to overcome the issue.

Mind telling us? :-)

Larry @ hasn't worked with DOS for a while...
date: Thu, 31 Jul 2008 13:53:32 +0900   author:   Larry Timms

Re: xcopy exclude switch   
"Larry Timms"  wrote in message 
news:328505be663eb38c4d6f936eb01ebfa6@grapevine.islandnet.com...
> 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.
date: Thu, 31 Jul 2008 07:20:04 +0200   author:   Pegasus \(MVP\)

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us