Re: XCopy Exclude Function NOT Working
- From: "Tom Porterfield" <tpporter@xxxxxxxx>
- Date: Thu, 2 Nov 2006 12:53:33 -0500
Danny Kile wrote:
I use Xcopy to make backup of important files and folders to an external
hard drive. However, in this long list of files and folders there is one
folder that I would like to exclude. I run this from a batch file with
some other Xcopy command as well the trouble command line follows along
with the contents of the exclude file list.
Batch file command:
xcopy "C:\Documents and Settings\Danny\Application Data\*.*" "H:\Dannys
Desktop PC Backup\Application Data\*.*" /h /e /r /d /y
/exclude:exclude.txt
The Exclude.txt file contains:
\Cache\
I have tried also cache, cache\, \cache\, and \*cache*\ I have also
tried not using the exclude.txt file and putting the directory in
question right in the command line. The command copies everything in the
C:\Documents and Settings\Danny\Application Data\ path including the
cache folder.
The \Cache\ syntax is correct. My guess is for some reason it isn't finding the exclude.txt file. What is the directory that cmd.exe is in when running the batch file? Possibly make the first line of the batch file one that CD to the directory with the batch file and exclude.txt file.
--
Tom Porterfield
.
- Follow-Ups:
- Re: XCopy Exclude Function NOT Working
- From: Danny Kile
- Re: XCopy Exclude Function NOT Working
- References:
- XCopy Exclude Function NOT Working
- From: Danny Kile
- XCopy Exclude Function NOT Working
- Prev by Date: Re: Certain websites unreachable despite ok DNS, ping, etc.
- Next by Date: Re: Batch file identifies a computer
- Previous by thread: XCopy Exclude Function NOT Working
- Next by thread: Re: XCopy Exclude Function NOT Working
- Index(es):
Relevant Pages
|