楼主到底要删除什么?
1,HKCR\CLSID\{D131EDD8-A677-11d7-A773-00C04F68F44E}下所有的内容?- @echo off
- for /f %%a in ('reg query "HKCR\CLSID"^|find /i "-A677-11d7-A773-00C04F68F44E}"') do reg delete "%%a" /f
复制代码 1,如果要删除HKCR\CLSID\{D131EDD8-A677-11d7-A773-00C04F68F44E}下的@="Vegas Pro 10.0 Kernel这个项键?- @echo off
- for /f %%a in ('reg query "HKCR\CLSID"^|find /i "-A677-11d7-A773-00C04F68F44E}"') do reg delete "%%a" /ve /f
复制代码 3,查询HKCR\CLSID\{D131EDD8-A677-11d7-A773-00C04F68F44E}下的@="Vegas Pro 10.0 Kernel,如果有删除@="Vegas Pro 10.0 Kernel?- @echo off
- for /f %%a in ('reg query "HKCR\CLSID"^|find /i "-A677-11d7-A773-00C04F68F44E}"') do for /f "skip=4 tokens=2*" %%b in ('reg query "%%a" /ve') do if /i "%%c"=="Vegas Pro 10.0 Kernel" echo reg delete "%%a" /ve /f
复制代码 4,查询HKCR\CLSID\{D131EDD8-A677-11d7-A773-00C04F68F44E}下的@="Vegas Pro 10.0 Kernel,如果有删除整个项?- @echo off
- for /f %%a in ('reg query "HKCR\CLSID"^|find /i "-A677-11d7-A773-00C04F68F44E}"') do for /f "skip=4 tokens=2*" %%b in ('reg query "%%a" /ve') do if /i "%%c"=="Vegas Pro 10.0 Kernel" echo reg delete "%%a" /f
复制代码
[ 本帖最后由 hanyeguxing 于 2010-12-5 16:45 编辑 ] |