Xcopy -- Try 2  | |
August 21st, 2003, 11:09 AM
|
#1 (permalink)
| | Member
Join Date: Oct 2002
Posts: 141
|
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. |
| |
August 21st, 2003, 11:47 AM
|
#2 (permalink)
| | 1010011010
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
|
| |
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 |
| |
August 21st, 2003, 12:56 PM
|
#4 (permalink)
| | 1010011010
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.
|
| |
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. |
| |
August 22nd, 2003, 10:52 AM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jun 2003 Location: NJ
Posts: 2,467
| |
| |
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? |
| |
August 26th, 2003, 08:42 PM
|
#8 (permalink)
| | Ultimate Member
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. |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |