.: Registry Scripts
|
|
| |
Please select from the following vbscripts examples:
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Write to registry
Option Explicit
Dim SysVarReg, Value
Value = "1234567890"
Set SysVarReg = WScript.CreateObject("WScript.Shell")
SysVarReg.RegWrite "HKLM\Software\AppName\Valuename", Value
Delete Registry Key
Option Explicit
Dim RegPath
Set RegPath = WScript.CreateObject("WScript.Shell")
RegPath.RegDelete "HKLM\Software\AppName\"
Delete Registry Value
Option Explicit
Dim SysVarReg
Set SysVarReg = WScript.CreateObject("WScript.Shell")
SysVarReg.RegDelete "HKLM\Software\AppName\Valuename"
Read From Registry
Option Explicit
Dim SysVarReg, Value
Set SysVarReg = WScript.CreateObject("WScript.Shell")
value = SysVarReg.RegRead ("HKLM\Software\AppName\Value")
Web site contents © Copyright Alan Phipps 2006, All rights reserved.
Website templates |