Core Function RegRead
From Sputnik Wiki
RegRead( <key>, <value>, <default> )
Contents |
Description
Reads a value from the registry
Parameters
key
The registry key to read.
value
The value to read.
default
Optional; The value to return if the read failed.
(Default: "" empty string)
Return Value
Success: Returns the correct data.
Failure: Returns the default data.
Remarks
None.
Example
my $var = RegRead(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion", @"ProgramFilesDir"); MsgBox("Program files are in: $var");