Help Center

AfxRegReadfunction

Returns the value of a key or value-name from the registry.

Windowsfunctiondocumented

Syntax

FUNCTION AfxRegRead (BYREF wszKey AS WSTRING) AS DWSTRING

Parameters

NameDescription
wszKeyThe registry key name.

Description

Returns the value of a key or value-name from the registry.

Example

print AfxRegRead("HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString") print AfxRegRead("HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\~Mhz")

Reference

  • Defined in AfxNova/AfxWsh.inc:41
  • Documented in Windows/Windows Script/Windows Shell.md
  • Topic: Windows Shell