DMTechGrooup
asked on
VBS - If registry key exisits then delete it
I need the following in a VBS file that if the key exists then delete it or move on.
Thanks.
Thanks.
' Delete Reg Key
Set WshShell = WScript.CreateObject("WScript.Shell")
key1 = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PDRFRAME"
WshShell.RegDelete key1 & "\"
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER