xcopy *.* C:\a /D:06-11-2003 /EXCLUDE:.txt /S/E/I/Y
Can't read file: .txt
--
http://cerbermail.com/?SvnGz1p37U
Jean Pierre Daviau
--
ASUS P4S533-E win2000 JVIEW JDK1.1.8 Borland commandline 5.5
http://web.JeanPierreDaviau.com
You've misunderstood the poorly written documentation (like many others -
this query returns 27 results!)
http://groups.google.com/groups?q=cmdprompt.admin+xcopy+exclude+file
--
Ritchie
Thanks.
xcopy *.* C:\a /D:06-11-2003 /EXCLUDE:*.txt* /S/E/I/Y
>.
>
> Have you tried:
>
> xcopy *.* C:\a /D:06-11-2003 /EXCLUDE:*.txt* /S/E/I/Y
I quote from the first responder:
"You've misunderstood the poorly written documentation (like many
others - ... "
That is just not how xcopy works. The parameter for the /EXCLUDE:"
switch is not a filespec but rather a fileName (of a plain ACSCII
file) to use as the source of the exclusion strings.
[ ]
EXCLUDE:\folder name\
but I noted that has to be written in the list file
EXCLUDE:dontbk.txt
********
file.txt
folder -----note wit no slashes
etc
***********
This is from xcopy /? on Win2000 SP3:
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. When any of
the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.
Make a file listing the excluded items and put the name of the file
after EXCLUDE:
Hope this helps.
Kevin
Bob I <bir...@yahoo.com> wrote in message news:<3EF6FB6B...@yahoo.com>...
Hope this helps.
Kevin
Bob I <bir...@yahoo.com> wrote in message news:<3EF6FB6B...@yahoo.com>...
xcopy *.* C:\a /D:06-11-2003 /EXCLUDE:".\ListofTxtFiles.txt" /S/E/I/Y
Would parse a file ListofTxtFiles.txt containing strings (in this case .txt)
that xcopy should exclude. If using this for scripts, try creating a root
directory of Scripts and store the exclusion files there, add an enviroment
variable, and parse that, IE:
SET ExclPath=C:\Scripts\Exclusion
xcopy *.* C:\a /D:06-11-2003 /EXCLUDE:"%ExclPath%\ListofTxtFiles.txt"
/S/E/I/Y
"Kevin" <kpw...@yahoo.com> wrote in message
news:225d7711.03071...@posting.google.com...