Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
HELP! I'm writing a batch file that's supposed to copy files off of networked servers to a backup server. My batch file looks like this:
xcopy "f:\test tree\*.*" "c:\test dir" /v /e /y /EXCLUDE:"C:\Documents and Settings\dfelten\Desktop\excluderule.txt"
pause(The pause is so that I can see any error messages)
My exclude rule looks like this:
"\Test subobject 3b"
I've tried it with and without the quotes. The error message I get is this:
'Can't read file "C:\Documents and Settings\dfelten\Desktop\excluderule.txt"'
I'm wondering if I have a syntax error....any help will be greatly appreciated!

It looks like xcopy doesn't handle blanks in exclude list file name.
If you put exclude list in file name like c:\temp\exclude it seems to work OK.

![]() |
Vertical Retrace with VB
|
Excel VBA - batch file in...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |