在Windows的命令行下通過Regedit工具並配合運行參數可以靈活地導入、導出指定的註冊表鍵值。
Reg工具實現添加、更改和顯示註冊表項中的註冊表子項信息和值。
這兩個工具的詳細使用方法如下:
一、REGEDIT
導出:regedit /e c:\test.reg HKEY_LOCAL_MACHINE\SAM\SAM
安靜模式導入:regedit /s c:\test.reg
詳細情況下:
regedit雖是gui下使用的東東 但其實是有未公開的參數的 可以在cmd下使用
regedit的運行參數
REGEDIT [/L:system] [/R:user] filename1
REGEDIT [/L:system] [/R:user] /C filename2
REGEDIT [/L:system] [/R:user] /E filename3 [regpath]
/L:system Specifies the location of the SYSTEM.DAT file.
/R:user Specifies the location of the USER.DAT file.
filename1 Specifies the file(s) to import into the regist
/C filename2 Specifies the file to create the registry from.
/E filename3 Specifies the file to export the registry to.
regpath Specifies the starting registry key to export from.
(Defaults to exporting the entire registry).
/S (Windows) Silent – no message on completion.
二、REG
可以 WindowsXP提供的reg命令行就可以做到。
Reg添加、更改和顯示註冊表項中的註冊表子項信息和值。
若要查看該命令語法,請單擊以下命令: