READTYPE

Action

Returns the ASCII representation of a registry entry data type (for example, REG_SZ).

 

Syntax

READTYPE ("subkey", "entry")

 

Parameters

Subkey

Identifies the subkey containing the entry.

Entry

Identifies the entry whose data type you want to discover.

Returns

ASCII representation of data type of specified registry entry.

 

The following data types can be returned:

·  REG_NONE

·  REG_SZ

·  REG_EXPAND_SZ

·  REG_BINARY

·  REG_DWORD

·  REG_DWORD_LITTLE_ENDIAN

·  REG_DWORD_BIG_ENDIAN

·  REG_LINK

·  REG_MULTI_SZ

·  REG_RESOURCE_LIST

·  REG_FULL_RESOURCE_DESCRIPTOR

 

Example

$RowsType = ReadType("HKEY_CURRENT_USER\Console\Configuration", "WindowRows")

If @ERROR = 0

   ? "Type of  WindowRows: $RowsType"

Endif