regedit [参数]
filename 导入 .reg 文件进注册表
/s 导入 .reg 文件进注册表(安静模式)
/e 导出注册表文件
例:regedit /e filename.reg HKEY_LOCAL_MACHINE//SYSTEM
/L:system 指定 system.dat
/R:user 指定 user.dat
/C 压缩 [文件名] (Windows 98)
还有一些参数也是可以用的,比如/a,但是我尝试后发现功能无非就是上述这些!而且测试参数很容易导致你的注册表加倍庞大,实在是一个很危险的工作。
批处理的话,把象上面的命令保存成bat文件就可以了
二、通过运行批处理文件自动导出注册表中Run的配置项
批处理文件.bat内容:
MD c:/Reg
regedit /e c:/Reg/Reg1.txt "HKEY_LOCAL_MACHINE/software/MICROSOFT/WINDOWS/CURRENTVERSION/run"
regedit /e c:/Reg/Reg2.txt "HKEY_LOCAL_MACHINE/software/MICROSOFT/WINDOWS/CURRENTVERSION/runonce"
regedit /e c:/Reg/Reg3.txt "HKEY_LOCAL_MACHINE/software/MICROSOFT/WINDOWS/CURRENTVERSION/runonceEx"
regedit /e c:/Reg/Reg4.txt "HKEY_LOCAL_MACHINE/software/MICROSOFT/WINDOWS/CURRENTVERSION/runServices"
regedit /e c:/Reg/Reg5.txt "HKEY_CURRENT_USER/software/MICROSOFT/WINDOWS/CURRENTVERSION/run"
regedit /e c:/Reg/Reg6.txt "HKEY_CURRENT_USER/software/MICROSOFT/WINDOWS/CURRENTVERSION/runONCE"
三、取消禁修改止IE主页的Regedit文件
.bat内容:
REGEDIT4
[HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System]
"DisableRegistryTools"=dword:00000000
[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/System]
"DisableRegistryTools"=dword:00000000
[HKEY_CURRENT_USER/Software/Policies/Microsoft/Internet Explorer/Control Panel]
"HomePage"=-