GetKey

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.
          Method 
          Member of  RegEdit.Server 

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
  Other links for GetKey
Properties of Server class
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).
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