Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xcopy stops at system volume information

510 views
Skip to first unread message

Pegasus (MVP)

unread,
Apr 19, 2004, 7:46:13 AM4/19/04
to

"JClark" <johnmc19...@hotmail.com> wrote in message
news:efe780dta92do7iof...@4ax.com...
> Hello Group:
>
> Using windows 2000Pro/sp4
>
> I have a batch program to copy data files from the boot drive c:\ to
> second hard drive y:\. This program works fine.
>
> But I also have a small third hard drive l:\ for music, etc, and when
> I try to copy all the folders on that drive to a folder on my backup
> HD, 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".
>
> Is there any way around this?
>
> Many thanks.
>
> Jack
>

When you type xcopy /? then you will see that the /c switch
was made especially for you!


foxidrive

unread,
Apr 19, 2004, 8:08:40 AM4/19/04
to
On Mon, 19 Apr 2004 11:35:50 GMT, JClark wrote:

> 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

Marco Maier Said

unread,
Apr 19, 2004, 5:08:58 PM4/19/04
to
Matthias Tacke wrote in message <news:c60e59$477$03$1...@news.t-online.com> :

> 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

guard

unread,
Apr 20, 2004, 5:37:37 AM4/20/04
to
"JClark" wrote
> Pegasus, Matthias, Foxidrive:
> I will certainly try the /c switch first. But I really appreciate
> learning about the /exclude: switch as well. Anxious to try it.
>
> Many thanks!
>
> Jack

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)


0 new messages