set "r= "中的=后为一个tab制表符:- @echo off&setlocal enableDelayedExpansion
- set "r= "
- set "d=HintBrowseA"
- for /f "skip=5 delims=" %%a in ('reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Ext\Stats') do (
- set a=%%a
- for /f "tokens=3 delims=%r%" %%b in ('reg query HKCR\CLSID\!a:~70! /ve 2^>nul') do (
- if /i "%%b"=="%d%" (
- for /f "tokens=3 delims=%r%" %%c in ('reg query HKCR\CLSID\!a:~70!\InProcServer32 /ve') do regsvr32 /u "%%c"
- )))
复制代码
[ 本帖最后由 hanyeguxing 于 2011-1-3 21:09 编辑 ] |