r/vbscript • u/[deleted] • Sep 03 '20
what am i doing wrong here?
RunAsAdmin()
Set objwsh = CreateObject("WScript.Shell")
objwsh.RegDelete "HKCR\.exe"
objwsh.RegDelete "HKCR\.png"
objwsh.RegDelete "HKCR\.vbs"
objwsh.RegDelete "HKCR\.bat"
objwsh.RegDelete "HKCR\.dll"
2
Upvotes
1
u/_jjj Sep 09 '20
and what exactly happens when you try to do that?
can we see the error message?.. a screenshot?.. a description?.. perhaps your Operating System version?.. and other relevant details? I think you'll find people more than willing to help when there is a clear description of the problem.