When you type xcopy /? then you will see that the /c switch
was made especially for you!
> the batch program stops when it gets to the "System Volume
> Information" folder of the small drive. So all folders beginning up to
> the letter "S" get copied, but folders with names beginning with "T"
> and beyond, don't get copied.
>
> The command within my batch file:
>
> xcopy "l:\*.*" "y:\l-copy\" /e /d /r /h /k /y
>
> I'm surprised the batch program just stops when it gets to the folder
> "system volume information".
As well as /c that Matthias and Pegasus mentioned, you can also exclude
folders using the /exclude: switch (from xcopy /?)
/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.
This is untested
@echo off
echo "\system volume information\">exclude.txt
xcopy "l:\*.*" "y:\l-copy\" /e /d /r /h /k /y /EXCLUDE:exclude.txt
del exclude.txt
> try the xcopy switch /C which continues in case of errors.
Yes,in this case this is the best solution.There are
cases in which it could be necessary to change ACLs
with CACLS.
--
Marco
You can also find the full XCopy.exe syntax for all NT-based operating
systems on the "XCopy Page" at
(http://TheSystemGuard.com/TheGuardBook/CCS-Ext/XCopy.htm).
-tsg
/-----------------+---------------+----------------------\
| COMPATIBILITY | CLARITY | SPEED |
| Write code ONCE | Make it clear | THEN...Make it fast! |
\-----------------+---------------+----------------------/
400+ command-line resources using ONLY native NT commands!
(http://TheSystemGuard.com/default.asp#MasterCommandList)