/build/static/layout/Breadcrumb_cap_w.png

Delete Registy

Hello Everyone,

VBScript happens to be one of my biggest weaknessess. I trying to create a vbscript that will delete the following registry entry. HKEY_CURRENT_USER\Software\Hummingbird

Can anyone point me in the right direction? I appreciate any help.

Thanks!!

0 Comments   [ + ] Show comments

Answers (2)

Posted by: bkelly 18 years ago
Red Belt
0
Check out the ASE Registry Script Wizard:
http://www.adminscripteditor.com/wizards/view.asp?id=22

It produced this...

Dim WSHShell
Set WSHShell = CreateObject ("WScript.Shell")
WSHShell.RegDelete "HKEY_CURRENT_USER\Software\Hummingbird"
Posted by: AssmbLLYCoder 18 years ago
Senior Yellow Belt
0
you can put the whole path as string into strRegValue
and can use error handling as well

Consider this

Set WshShell = Wscript.CreateObject("Wscript.Shell")
On Error resume Next
strRegValue = WshShell.RegRead ( strRegPath )
If Err.Number = -2147024894 Then
' The entry does not exist
Else
strRegValue = WshShell.RegDelete ( strRegPath )
End If
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ