IT Employment

General discussion


Deleting Reg Key

By rocky5689 ·

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -


by BFilmFan In reply to Deleting Reg Key

I'd recommend that you use Windows SCript Host.

Sample below:

WSHShell = CreateObject("WScript.Shell")

*!* Delete Registry Keys
WSHShell.Popup( "Delete value HKCU\MyRegKey\Entry\Value1")
WSHShell.RegDelete( "HKCU\MyRegKey\Entry\Value1")

You can find a ton of Microsoft scripts here:

Collapse -

by rocky5689 In reply to WSH

Yes but how its going to pull the computer name its being run on

Related Discussions

Related Forums