Backup Batch file for Win95-98
Copy the following lines into Notepad, and save it as "backup.bat". Run the file periodically to backup the registry and other important system files into the c:\backup folder.
*** not for Win2000 or XP
REM this batch file will backup your registry and startup files
copy c:\autoexec.bat c:\backup
copy c:\autoexec.dos c:\backup
copy c:\config.sys c:\backup
copy c:\config.dos c:\backup
copy c:\windows\control.ini c:\backup
copy c:\windows\system.ini c:\backup
copy c:\windows\win.ini c:\backup
attrib -r -h -s c:\msdos.sys
attrib -r -h -s c:\windows\user.dat
attrib -r -h -s c:\windows\system.dat
copy c:\msdos.sys c:\backup
copy c:\windows\user.dat c:\backup
copy c:\windows\system.dat c:\backup
attrib +r +h +s c:\msdos.sys
attrib +r +h +s c:\windows\user.dat
attrib +r +h +s c:\windows\system.dat
Now - if you ever get in a jam and need to restore the Registry and assorted system files from your Backup - copy these lines into Notepad and save the file as "restore.bat" :
REM this batch file will restore your registry and startup files
copy c:\backup\autoexec.bat c:\
copy c:\backup\autoexec.dos c:\
copy c:\backup\config.sys c:\
copy c:\backup\config.dos c:\
copy c:\backup\control.ini c:\windows
copy c:\backup\system.ini c:\windows
copy c:\backup\win.ini c:\windows
attrib -r -h -s c:\msdos.sys
attrib -r -h -s c:\windows\user.dat
attrib -r -h -s c:\windows\system.dat
copy c:\backup\msdos.sys c:\
copy c:\backup\user.dat c:\windows
copy c:\backup\system.dat c:\windows
attrib +r +h +s c:\msdos.sys
attrib +r +h +s c:\windows\user.dat
attrib +r +h +s c:\windows\system.dat