MOTOBIT.COM - ASP upload, IIS utility GetKey Method of Server class

Method | Member of  RegEdit.Server | Changes | Purchase | Download

Description

Returns specified key from remote computer.

Syntax

Set vGetKey = Server.GetKey (Path as String, [MachineName as String = (local)], [UserName as String = Empty string], [Password as String = Empty string])
 

Where Type Optional Default Description
 Path  String     Key's path 
 MachineName  String  yes  (local)  Remote computer for the key. 
 UserName  String  yes  Empty string  Specifies a user name to be used in making the connection 
 Password  String  yes  Empty string  Specifies a password to be used in making the network connection 

Returns

Key - One registry key.

Remarks

GetKey uses AddConnection method if UserName/Password is defined.

Examples

Set content type of extension

  Set S = CreateObject("RegEdit.Server")

  S.GetKey("HKCR\.asa").Values("Content Type")="text/asp"

See also

Server.AddConnection

Other links for GetKey

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