ExpandEnvironmentStrings

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
Expands environment-variable strings and replaces them with their defined values.
Syntax
vExpandEnvironmentStrings = Server.ExpandEnvironmentStrings (EnvironmentString as String)
 
Where Type Optional Default Description
 EnvironmentString  String     String that might contain references to environment-variable strings. 
Returns
String
Examples
 Sample envinronment variables.  
  Set S = CreateObject("RegEdit.Server")

  'Get windows directory
  Wscript.Echo "windir: " & S.ExpandEnvironmentStrings("%windir%")

  'Get temp path
  Wscript.Echo "temp:   " & S.ExpandEnvironmentStrings("%temp%")
  Other links for ExpandEnvironmentStrings
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