Using xcopy for backup

Tech-Archive recommends: Fix windows errors by optimizing your registry



I'm trying to use xcopy from a batch file to back up drive d to drive j
(both local drives). The command is:

xcopy d:\*.* j:\backup\*.* /s /h /e /v /d

However, this gives an error message:

Can't read file: "\System Volume Information"

and aborts without copying anything. ("System Volume Information" is a
folder in the root folder of d. The Security for this folder is set to allow
reading it.)

I attempted to exclude "\System Volume Information" during xcopy with the
following command but still get the same results:

xcopy d:\*.* j:\backup\*.* /s /h /e /v /d /exclude:"\System Volume
Information"

I realize that I could put everything that I want to backup on d: into a
single folder and then backup only that folder but I would prefer not to do
this. Also, the batch file has commands to backup other parts of my system
(in addition to drive d:) so I'd prefer not to abandon this batch file.

Thanks for any suggestions.

Don Culp


.



Relevant Pages

  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)
  • Re: Need Help with a DOS script (if possible)
    ... Closes Command Prompt ... echo Checking the target folder xxx%Target%yyy ... Will this work on either network drives, ...
    (microsoft.public.windowsxp.general)
  • Re: USB drive problem
    ... Once per month I update the files using a batch file ... using this context for the copy command: ... that folder. ... The first problem I see is that there is no U or S switch for COPY. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Ways to get a Directory Listing in a Text File, or Printed out - Re: Web site directories
    ... Use the CD Command, in a Command Prompt Window ... That doesn't specify a folder, just changes to the specified folder, ... if yo ucall up a Script (or Batch File) by using the *RightClick* ...
    (uk.people.silversurfers)
  • Re: How to copy whole folders?
    ... First of all your syntax is different than xcopy help shows: ... I want just to move my batch file from one folder to another and run it ... error and restart the same xcopy command until all files are copied. ...
    (microsoft.public.windows.file_system)