Board logo

标题: [注册表类] 批处理怎样如何批量删除注册表项? [打印本页]

作者: insertone    时间: 2011-6-10 17:01     标题: 批处理怎样如何批量删除注册表项?

HKEY_CLASSES_ROOT\Installer\Features\445456456464646231F01FEC
HKEY_CLASSES_ROOT\Installer\Features\4465464564564561231F01FEC
HKEY_CLASSES_ROOT\Installer\Features\4786786767676767F01FEC
HKEY_CLASSES_ROOT\Installer\Features\43413413123131231F01FEC
……
HKEY_CLASSES_ROOT\Installer\Features\45676464543131231F01FEC


我要批量删除Features下面的以F01FEC结尾的项,该如何操作?
作者: lxzzr    时间: 2011-6-10 21:32

本帖最后由 lxzzr 于 2011-6-11 00:17 编辑

什么操作系统??

PowerShell -command "& {new-psdrive -name hkcr -psprovider registry -root hkey_classes_root; remove-item hkcr:\installer\features\*F01FEC}"
作者: insertone    时间: 2011-6-13 09:24

2# lxzzr


WINDOWS2003,貌似不行。
作者: fastslz    时间: 2011-6-13 10:08

  1. @echo off
  2. for /f "delims=" %%i in ('reg query "HKEY_CLASSES_ROOT\Installer\Features"^|findstr /i /e "F01FEC"') do reg delete "%%i" /f
复制代码

作者: insertone    时间: 2011-6-13 14:09

4# fastslz


可以了,谢谢,还是不够熟。




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2