Core Function RegRead

From Sputnik Wiki
Revision as of 21:24, 26 August 2013 by UberFoX (Talk | contribs)
Jump to: navigation, search
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.

Major Failure: Returns null.

Remarks

None.

Example

my $var = RegRead(@"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion", @"ProgramFilesDir");
MsgBox("Program files are in: $var");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox