MOTOBIT.COM - ASP upload, IIS utility Keys Property, read only of Server class

Property, read only | Member of  RegEdit.Server | Changes | Purchase | Download

Description

Subkeys of the Key specified by Connect method (or by hKey property).

Syntax

Set vKeys = Server.Keys

Returns

Keys - Collection of key objects of one registry key.

Remarks

Default is subkeys of HKEY_LOCAL_MACHINE from the local computer.

Examples

Enumerate classes on remote computer

  'Get regedit server object
  Set S = CreateObject("RegEdit.Server")
 
  'Connect to the remote registry
  S.Connect "ComputerName", rkClassesRoot


  For Each Key In S.Keys
      Wscript.Echo Key.Name
  Next

See also

Key.SubKeys, Server.Connect

Other links for Keys

Methods of Server class

AddConnection, Close, Connect, ExpandEnvironmentStrings, GetKey, LogonUser, RevertToSelf

Properties of Server class

hKey, Keys, Name

RegEdit.Server

Server/computer for the ActiveX regedit.
You can use GetKey method to get a specified key from the server.
Keys property returns a collection containing subkeys of a connected key (See Connect method).

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