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!!
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)
Please log in to answer
Posted by:
bkelly
18 years ago
Posted by:
AssmbLLYCoder
18 years ago
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
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.
so that the conversation will remain readable.