home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Technical Support
Ask a Tech Support Question (free)!

Xcopy -- Try 2

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2164
Discussions: 200,945, Posts: 2,379,370, Members: 246,307
Old August 21st, 2003, 11:09 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Oct 2002
Posts: 141
Xcopy -- Try 2

I'll try this again, since it looks like the message didn't post right the first time.

I am trying to write a simple script using the xcopy command. I need to use the /EXCLUDE switch, but am not having luck in getting it to work. I need to exclude the following:

E:\fnsw\dev\1\cache*
E:\fnsw\dev\1\TRANSIENT_*

If anyone can help me with the command syntax for this, I'd appreciate it.

Thanks.
n3uxf is offline   Reply With Quote
Old August 21st, 2003, 11:47 AM     #2 (permalink)
1010011010
 
jmichna's Avatar
 
Join Date: Oct 2001
Location: Chicagoland IL
Posts: 3,249
try the following:

xcopy /exclude:\fnsw\dev\1\cache
xcopy /exclude:\fnsw\dev\1\TRANSIENT_

Don't think you need the wildcard, also think the "E:" isn't needed since the remainder should be sufficient of a string to exclude the files you want excluded.

Please post back and ley me know what works.
__________________
"The trouble with our liberal friends is not that they're ignorant; It's just that they know so much that isn't so." -- Ronald Reagan
jmichna is offline   Reply With Quote
Old August 21st, 2003, 12:01 PM     #3 (permalink)
Member
 
Join Date: Oct 2002
Posts: 141
When I try that, I get the following error:

Can't read file: \fnsw\dev\1\cache
n3uxf is offline   Reply With Quote
Old August 21st, 2003, 12:56 PM     #4 (permalink)
1010011010
 
jmichna's Avatar
 
Join Date: Oct 2001
Location: Chicagoland IL
Posts: 3,249
Quote:
Originally posted by n3uxf
When I try that, I get the following error:

Can't read file: \fnsw\dev\1\cache

Try:
xcopy /exclude:E:\fnsw\dev\1\cache+E:\fnsw\dev\1\TRANSIEN T_

If still nogo, then try:
xcopy /exclude:"E:\fnsw\dev\1\cache"+"E:\fnsw\dev\1\TRANS IENT_" (putting each filename in quotes)


PS: Steve, I read that XCOPY help info too, and had some trouble trying to decipher whether the drive letter "E:" should be excluded. Seems like the * wildcard should not be needed.

I suggested separate lines for each file string just to keep things simple until n3uxf got something that worked.

Last edited by jmichna : August 21st, 2003 at 01:00 PM.
jmichna is offline   Reply With Quote
Old August 22nd, 2003, 09:10 AM     #5 (permalink)
Member
 
Join Date: Oct 2002
Posts: 141
This is driving me nuts. I tried the path in quotes, still got the same error. It is something in the exclude switch. I am at a loss as to what else to try at this point.
n3uxf is offline   Reply With Quote
Old August 22nd, 2003, 10:52 AM     #6 (permalink)
Ultimate Member
 
meese's Avatar
 
Join Date: Jun 2003
Location: NJ
Posts: 2,467
The /EXCLUDE switch does not appear to be an option in the newer windows version of XCOPY. It was available in the DOS version. Some switches were added and some were removed when MS created the windows XCOPY.

http://support.microsoft.com/default...NoWebContent=1
meese is offline   Reply With Quote
Old August 22nd, 2003, 10:58 AM     #7 (permalink)
Member
 
Join Date: Oct 2002
Posts: 141
I am attempting this on a W2K box. If you do an xcopy /? at the command prompt, /EXCLUDE is listed as an option. If this is not an option, then is there another way of accomplishing exclusion of certain files?
n3uxf is offline   Reply With Quote
Old August 26th, 2003, 08:42 PM     #8 (permalink)
Ultimate Member
 
meese's Avatar
 
Join Date: Jun 2003
Location: NJ
Posts: 2,467
Sorry for the delayed reply. Here is a link to MS kB about xcopy. Maybe something is there. I use xcopy to backup my data. I use the date switch. You would think there would be a way to omit certain files and folders. If you happen to find some info about this, I would appreciate it if you would post it here.

http://support.microsoft.com/search/...false&numDays=

Thats what call a hyper-extensive hyperlink... or one might say hyper-active. Hope it works

For some reason you any see the basic hyperlink. It appears they hide all the hyper activity.
meese is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (166)
The disrespect of Obama by Russian .. (18)
Is It Just Me? (2930)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
Graphics Card Upgrade Question (2)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)


All times are GMT -4. The time now is 07:17 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28