Value

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Class 
          Member of  RegEdit Use Value object 

Description
Represents one value from windows registry
VBS does not have functions to work with native binary data (VT_UI1 | VT_ARRAY). We can use multibyte string functions to handle binary registry values in VBS.
Object model
Value - Represents one value from windows registry (Item property, Returns a single Value object from the Values collection.)
Methods
Binary Returns or sets the value as a binary data - safearray of bytes.
Delete Removes the value from the specified registry key.
Key Key containing this value.
SetValue Sets valueand type to the specified registry value name.
Properties
NameThe name of the value.
String, RW
TypeType of the registry value.
ValueType, RW
ValueValue of the registry value.
Variant, RW
ExpandedExpanded string value.
String, RO
Examples
 Export one registry key on local or remote machine using vbs command line script  
 Set content type for .asa  
  Set S = CreateObject("RegEdit.Server")

  S.GetKey("HKCR\.asa").Values("Content Type")="text/asp"
 List of shell extensions.  
  'Get RegEdit.Server object
  Set S = CreateObject("RegEdit.Server")

  Set Key = S.GetKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved")

  For Each Value In Key.Values
      Wscript.Echo Value.Value
  Next
Used in
  Other links for Value class
ActiveX RegEdit classes
Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.

© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 1.06.2