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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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"
Answered 01/30/2006 by: bkelly
Red Belt

Please log in to comment
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
Answered 02/01/2006 by: AssmbLLYCoder
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity