cmd下修改注册表完全攻略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. so,直接用proess开启cmd命令行,运行regedit /e c:\test.reg 就成
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.
so,直接用proess开启cmd命令行,运行regedit /e c:\test.reg 就成