MOTOBIT.COM - ASP upload, IIS utility Value Class, Represents one value from windows registry., Member of RegEdit

Member of  RegEdit Use Value object | Changes | Purchase | Download

Description

Represents one value from windows registry

VBS and binary values

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

Values.Item

Other links for Value class

ActiveX RegEdit classes

Server, Keys, Key, Values, Value

ActiveX RegEdit enums

ValueType, ReservedKeys, LogonTypes, AccessRights

RegEdit

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 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz