Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg Delete Method

Status
Not open for further replies.

dehat01

Technical User
Mar 10, 2003
6
US
I've noticed that VBS has a limitation of having to delete every registry value before you can delete the entire key (when using the RegDelete method). Is there anyway to delete an entire registry key without having to delete every individual value first??
 
Have you tried something like this ?
Code:
Set Sh=WScript.CreateObject("WScript.Shell")
Sh.RegDelete "HKxx\path\to\yourkey\"
                                  ^

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top