Discussion Locked

Batch file to backup the registry

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need someone to supply me with a batch file the I can use to make backup copies of system.dat and user.dat and place the copies in a separate folder of my choice.

The batch file should execute each time I boot up my computer.

7 replies

by mphoffar

This would be one way you could do it...

cd \windows
attrib -s -h -r user.dat
attrib -s -h -r system.dat

copy user.dat
copy system.day

attrib +s +h +r user.dat
attrib +s +h +r system.dat

It would need to go into the autoexec.bat for it to happen on bootup.

Mark

by saxman642

I do use WIN 98 SE and I do know that the registry files are backed up each time I boot up.
I just want a second backup of the registry to a more 'convienient' location

by jdhouck

mphoffar provides a good answer. You can take it a step farther by making it a separate batch file (example savereg.bat) and use
"call savereg.bat"
in your Autoexec.bat. The advantage this method offers is that you can shoot off a quick backup copy just by running the savereg file any time. Like just before you try a new software install.

This discussion is closed to new replies.