Created
September 1, 2015 00:31
-
-
Save thekingofspain/c08025f0f93896697107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim objHTA | |
Dim cClipBoard | |
Dim WshShell | |
set objHTA=createobject("htmlfile") | |
cClipBoard=objHTA.parentwindow.clipboarddata.getdata("text") | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey", cClipBoard, "REG_SZ" | |
WshShell.Run "regedit.exe -m" | |
Set objHTA = nothing | |
Set WshShell = nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment