| |
mbouchard
Posts: 1906
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Yes and yes. I will put an example below, but check Here and you can get the Script documentation Here Taken from Documentation. quote: Dim WshShell, bKey Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite "HKCU\Software\ACME\FortuneTeller\", 1, "REG_BINARY" WshShell.RegWrite "HKCU\Software\ACME\FortuneTeller\MindReader", "Goocher!", "REG_SZ" bKey = WshShell.RegRead("HKCU\Software\ACME\FortuneTeller\") strRegKey = WshShell.RegRead("HKCU\Software\ACME\FortuneTeller\MindReader") msgbox strRegKey 'Run command could be 'WshShell.Run "somefile.exe /" & strRegKey,1,TRUE WshShell.RegDelete "HKCU\Software\ACME\FortuneTeller\MindReader" WshShell.RegDelete "HKCU\Software\ACME\FortuneTeller\" WshShell.RegDelete "HKCU\Software\ACME\"
Mike
|
|