一、regedit命令
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"=-