IT CAMPER
asked on
Need to edit batch file to delete a registry folder
I need to edit this batch file to delete the ENTIRE MSLicensing folder in the registry, not just the key and contents within that folder.
@echo off
setlocal
call :Quiet>nul 2>&1
set key=HKEY_LOCAL_MACHINE\SOF TWARE\Micr osoft\MSLi censing
for /f "Tokens=*" %%a in ('REG QUERY %key%^|find /i "%key%\"') do (
@echo REG DELETE "%%a" /F
REG DELETE "%%a" /F
)
endlocal
goto :EOF
:Quiet
NET START TERMSERVICE
@echo off
setlocal
call :Quiet>nul 2>&1
set key=HKEY_LOCAL_MACHINE\SOF
for /f "Tokens=*" %%a in ('REG QUERY %key%^|find /i "%key%\"') do (
@echo REG DELETE "%%a" /F
REG DELETE "%%a" /F
)
endlocal
goto :EOF
:Quiet
NET START TERMSERVICE
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thank you.
ASKER