Tuesday October 29, 2024

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  <SAREADREG/>    
 
 
Secure Tag
Return to Tag List
 
The READREG tag offers read access to the Windows registry. Single values, or enumerated list of keys (or values) can be retrieved with READREG. To retrieve a list of keys specify TYPE="KEYS"; to enumerate values specify TYPE="VALUES".

Do not specify a PARAM value to have keys or values returned in a LIST (enumerated).
 
Attributes:
KEYany high level key value (default is HKEY_LOCAL_MACHINE)
SUBKEYsubkey value
PARAMparameter under subkey
NAMEvariable to receive data
DEFAULTvalue returned if PARAM not found
TYPE"keys" or "values" to enumerate

 
The following is an example of READREG;
 
<!--- Read a registry value --->
<SAREADREG KEY="HKEY_LOCAL_MACHINE" SUBKEY=subKey
      PARAM="newsserver" NAME=newsserver>


<!--- Enumerate registry values --->
<SAREADREG KEY="HKEY_LOCAL_MACHINE" TYPE="VALUES"
      SUBKEY=subKey NAME=EnumList>


<!--- Enumerate ODBC datasources (enumerate keys) --->
<SAREADREG NAME=DS_List KEY="HKEY_LOCAL_MACHINE"
      TYPE="KEYS" SUBKEY="SOFTWARE\ODBC\odbc.ini">

<SAOUTPUT>#ds_list[]#</SAOUTPUT>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy