Batch file for copying C:

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I regularly have to backup C drives, I've been trying to use an xcopy cmd in
a batch file for copying C: to another drive on same PC but it doesn't copy
all the files (out of 40k files on a C: it leaves about 10K). I've been told
it can be done. I'd also like to get a report at the end showing how many
files were copied.
Can someone give me an example of batch file for this?

Thanks

Charles
 
Charles said:
I regularly have to backup C drives, I've been trying to use an xcopy cmd in
a batch file for copying C: to another drive on same PC but it doesn't copy
all the files (out of 40k files on a C: it leaves about 10K). I've been told
it can be done. I'd also like to get a report at the end showing how many
files were copied.
Can someone give me an example of batch file for this?

With a batch file you cannot copy files that are currently in use,
which are a lot if Windows is installed on the C drive. I recommend
using a professional backup tool like Norton Ghost.
 
Thorsten Matzner said:
With a batch file you cannot copy files that are currently in use,
which are a lot if Windows is installed on the C drive. I recommend
using a professional backup tool like Norton Ghost.

I use Norton Ghost but sometimes the harddrive I'm backing up had errors
and Norton won't copy it even with error checking turned off. So that's why I
want to use the batch file. Also the C drive I'm copying is not running.
 
Charles said:
I regularly have to backup C drives, I've been trying to use an xcopy
cmd in a batch file for copying C: to another drive on same PC but it
doesn't copy all the files (out of 40k files on a C: it leaves about
10K). I've been told it can be done. I'd also like to get a report at
the end showing how many files were copied.
Can someone give me an example of batch file for this?

Thanks

Charles

xcopy c:\*.* x:\path /s/e/c/f/h | x:\path\listing.txt

Kerry
 
cjq said:
:




I use Norton Ghost but sometimes the harddrive I'm backing up had errors
and Norton won't copy it even with error checking turned off. So that's why I
want to use the batch file. Also the C drive I'm copying is not running.


I used Spinrite 6 when I had errors on my hard drive that Ghost wouldn't
copy. After running Spinrite the errors were gone and I could use Ghost
to clone the drive to a new drive and retire the failing drive.
 
Back
Top