注册表编辑器一定要在视窗环境下才能运行吗?不! regedit.exe在DOS方式下照常可以运行。在DOS方式下键入命令行:regedit,就会出现语法提示如下: c:\>regedit Imports and exports registry files to and from the registry REGEDIT [/L:system] [/R:user] filename1 REGEDIT [/L:system] [/R:user] /C filename2 REGEDIT [/L:system] [/R:user] /E filename3 [regpath1] REGEDIT [/L:system] [/R:user] /D regpath2 /L:system Specifies the location of SYSTEM.DAT file. /R:user Specifies the location of USER.DAT file. filenamel Specifies the file(s) to import into the registry. /C filename2 Specifies the file to creat the registry from.. /E filename3 Specifies the file to export the registry to. regpath1 Specifies the starting registry key to export from (Defaults to exporting the entire registry). /D regpath2 Specifies the registry key to delete. c:\>_ 语法具体含义上面已经写得很清楚,结合例子说明如何使用。 导出注册表数据到一指定文件(例如test.reg),执行命令: c:\>regedit /E test.reg 从一指定文件(例如test.reg)导入注册表数据,执行命令: c:\>regedit test.reg 利用system.dat文件和user.dat文件导出注册表数据到一指定文件,执行: c:\>regedit /l:c:windows /r:c:\windows\testuser\ test /e test.reg 除了DOS方式下的regedit可以恢复被损坏的注册表文件,完成维护工作外,Windows98新增了一个注册表维护工具,同样可以胜任这一工作,它就是scanreg.exe,具有以下功能: