View Full Version : Delete an entire key (W2K)
socalcdub
07-10-2002, 09:07 PM
I would like to axe a key in the registry w/ script. It contains multiple keys below it. The RegDelete method only seems to work when a key is empty. Does anyone know how I can delete an entire key and it sub contents with script or otherwise? TIA.
mcse4real
09-18-2002, 09:07 PM
Export the key you wan to delete to a REG file.
Edit the REG file to take out all the subkeys and add a "-" at the begin of the top-level key. An example will be:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\MACROSOFT]
Running this REG file will delete the whole key with all its subkeys.
vBulletin® v3.8.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.