regedit.exe参数说明

  说到备份注册表,大家首先想到的肯定是用超级兔子之类的系统优化软件,实际上在XP系统中用系统自带的注册表编辑器(regedit.exe)这个程序就能备份注册表了。

  它有以下几种常用用法:

1。备份

regedit /e filename [regpath] 将指定的注册表分支备份(如未指定regpath则对所有的分支进行备份)

如:

regedit /e backup.reg 将注册表的所有分支备份到当前路径下的backup.reg文件

regedit /e backup.reg HKEY_LOCAL_MACHINE/SYSTEM 将HKEY_LOCAL_MACHINE/SYSTEM分支导出到backup.reg文件(注意分支间分隔用“/ ”,而不是“/ ”)

 

2。还原

regedit [/s]  filename 将指定文件导入注册表(加/s表示以安静模式导入,即不提示)

如:

regedit backup.reg 将backup.reg导入注册表

regedit /s backup.reg 以安静模式将backup.reg导入注册表

 

附:regedit 在DOS下的完整用法

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.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值