Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

READVALUE

action

Reads the value of a registry entry.

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

0

Function returns ASCII representation of the specified registry entry

Error code

Function failed

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