Command Line

Command GETREG

Function:

Get a System Registry value or enumerate all the names for the specified hkey. The value is stored in an environment variable called GETREG.
Syntax:
GETREG hkey [name]
hkeySpecifies the path of the complete key.
nameSpecifies the name of the value to retrieve.
Note:
  • Parameter hkey must begin with one of the following System Registry names :-
    HKEY_USERS
    HKEY_CURRENT_USER
    HKEY_LOCAL_MACHINE
    HKEY_CLASSES_ROOT
    and all the sub-keys must be separated by backslashes (ie. ' \ '), For example :-
    HKEY_CURRENT_USER\Software\WinOne\WinOne
  • The following types of values may be retrieved using command GETREG :-
    REG_SZA null terminated string.
    REG_DWORDA 32 bit number.
    REG_DWORD_LITTLE_ENDIANSame as REG_DWORD.
    REG_DWORD_BIG_ENDIANA 32 bit number which is automatically converted to REG_DWORD format.
    REG_MULTI_SZA list of null terminated strings. Each entry is separated with comma's.
  • When parameter name is not specified then command GETREG will enumerate all the names contained in the specified hkey and create a list which contains all the names separated by comma's.
  • Command GETREG is not available under Win32s, since WIn32s does not support a System Registry.
  • Also see command SETREG, ENUMREG, GETINI, SETINI and Batch Programs.

Copyright © 1995-2005 Lucien Cinc, All Rights Reserved
WinOne is an Australian registered trademark of Lucien Cinc