Have a look at ReadVlaue() in the manual.
READVALUE
Action
Reads a registry value and returns it as an ASCII string.
Syntax
READVALUE ("subkey", "entry")
Parameters
Subkey
Identifies the subkey containing the entry.
Entry
Identifies the entry whose value you want to discover. To read the default entry of a key, specify an empty string as the entry name ("").
Returns
ASCII representation of the specified registry value.
REG_MULTI_SZ (multi-string) variables are returned with the pipe symbol ( | ) used as the separator between strings. If a string contains a pipe symbol character, it is represented by two pipe symbol characters ( || ).
REG_DWORD variables are returned in decimal format.
Example
$Rows = ReadValue("HKEY_CURRENT_USER\Console\Configuration", "WindowRows")
If @ERROR = 0
? "Number of window-rows: $Rows"
Endif
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.