reg backup bat
2008-03-26 01:48
注册表备份的批处理文件
可以copy rar.exe到文件夹下,来压缩备份的reg文件
=======================
@ECHO OFF
REM this is a reg backup bat
ECHO hanhell, Inc. Product
ECHO e-mail:hanhell@hanhell.com
IF exist backup\"%date%" rd /s /q backup\"%date%"
MD backup\"%date%"
REG export hklm hklm.reg
REG export hkcu hkcu.reg
IF exist Rar.exe (
RAR a hklm.rar hklm.reg
DEL hklm.reg
RAR a hkcu.rar hkcu.reg
DEL hkcu.reg
MOVE hklm.rar backup\"%date%"
MOVE hkcu.rar backup\"%date%"
echo 压缩成功
echo Congratulations!
) else (
echo 备份成功
echo Congratulations!
)
REM ------------------------
REM reg export HKCR HKCR.reg
REM reg export HKU HKU.reg
REM reg export HKCC HKCC.reg
REM ------------------------
Pause>nul
===============================================================
@ECHO OFF
REM this is a reg backup bat
ECHO hanhell, Inc. Product
ECHO e-mail:hanhell@hanhell.com
if exist backup\"%date%" rd /s /q backup\"%date%"
md backup\"%date%"
cd backup\"%date%"
reg export HKLM HKLM.reg
reg export HKCU HKCU.reg
REM ------------------------
REM reg export HKCR HKCR.reg
REM reg export HKU HKU.reg
REM reg export HKCC HKCC.reg
REM ------------------------
ECHO Congratulations!
Pause>nul
注册表备份的批处理文件
可以copy rar.exe到文件夹下,来压缩备份的reg文件
=======================
@ECHO OFF
REM this is a reg backup bat
ECHO hanhell, Inc. Product
ECHO e-mail:hanhell@hanhell.com
IF exist backup\"%date%" rd /s /q backup\"%date%"
MD backup\"%date%"
REG export hklm hklm.reg
REG export hkcu hkcu.reg
IF exist Rar.exe (
RAR a hklm.rar hklm.reg
DEL hklm.reg
RAR a hkcu.rar hkcu.reg
DEL hkcu.reg
MOVE hklm.rar backup\"%date%"
MOVE hkcu.rar backup\"%date%"
echo 压缩成功
echo Congratulations!
) else (
echo 备份成功
echo Congratulations!
)
REM ------------------------
REM reg export HKCR HKCR.reg
REM reg export HKU HKU.reg
REM reg export HKCC HKCC.reg
REM ------------------------
Pause>nul
===============================================================
@ECHO OFF
REM this is a reg backup bat
ECHO hanhell, Inc. Product
ECHO e-mail:hanhell@hanhell.com
if exist backup\"%date%" rd /s /q backup\"%date%"
md backup\"%date%"
cd backup\"%date%"
reg export HKLM HKLM.reg
reg export HKCU HKCU.reg
REM ------------------------
REM reg export HKCR HKCR.reg
REM reg export HKU HKU.reg
REM reg export HKCC HKCC.reg
REM ------------------------
ECHO Congratulations!
Pause>nul
没有评论:
发表评论