XCopy Exclude problems

Techx

Supreme [H]ardness
Joined
Dec 30, 2002
Messages
4,380
I have a batch file here at work that does simple backups of the outlook express database files, but I wanted it to start excluding the 'deleted items' file and have tried so many different iterations of the command but still have not gotten it to work. The .bat looks something like this

xcopy "C:\Documents and Settings\etc\Outlook Express\*.*" "\\server\outlook\username" /s/e/y

In xcopy help it shows the exclude command should be used like this, but it don't really help me to get it working properly.

/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. 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.

Any ideas? :(

Thanks
 
Back
Top