Conversation Between ninjabeaver and burgemaster

1 Visitor Messages

  1. @echo off
    setlocal EnableDelayedExpansion
    set KEY="HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components"
    set FND=find /i %KEY%
    for /f "Tokens=*" %%a in ('reg query %KEY% /s^|%FND%') do (
    set SP=N
    for /f "tokens=*" %%b in ('reg query "%%a"^|find /i "STUBPATH"^|find "REG_"') do (
    set SP=Y
    )
    if "!SP!" EQU "Y" reg delete "%%a" /V STUBPATH /F
    )
    endlocal
Showing Visitor Messages 1 to 1 of 1