-1
I have a txt file like this:
HKLM\SOFTWARE\Classes\CLSID\{03ACC284-B757-4B8F-9951-86E600D2CD06}]
HKLM\SOFTWARE\Classes\CLSID\{03ACC284-B757-4B8F-9951-86E600D2CD06}\InprocServer32
HKLM\SOFTWARE\Classes\CLSID\{03ACC284-B757-4B8F-9951-86E600D2CD06}\ProgID
HKLM\SOFTWARE\Classes\CLSID\{03ACC284-B757-4B8F-9951-86E600D2CD06}\Programmable
HKLM\SOFTWARE\Classes\CLSID\{03ACC284-B757-4B8F-9951-86E600D2CD06}\TypeLib
HKLM\SOFTWARE\Classes\CLSID\{03ACC284-B757-4B8F-9951-86E600D2CD06}\VersionIndependentProgID
HKLM\SOFTWARE\Classes\CLSID\{17E3A1C3-EA8A-4970-AF29-7F54610B1D4C}
HKLM\SOFTWARE\Classes\CLSID\{17E3A1C3-EA8A-4970-AF29-7F54610B1D4C}\InprocServer32
HKLM\SOFTWARE\Classes\CLSID\{17E3A1C3-EA8A-4970-AF29-7F54610B1D4C}\ProgID
HKLM\SOFTWARE\Classes\CLSID\{17E3A1C3-EA8A-4970-AF29-7F54610B1D4C}\Programmable
I want to delete around 1000 registry keys. What is the easiest way?
I don't want to delete them one at a time.
1
Use a
– LotPings – 2019-06-11T14:28:41.493for /f
to read/parse the text file and Reg.exe to delete the key.a CMD file can use
REG DEL
to delete registry keys. Use at your own risk and make backups! One mistake could cause your windows to not boot anymore. – LPChip – 2019-06-11T14:57:14.593