@REGTYPE[HKEY...\key] : Returns the registry variable type. The possible values are:

 

0 - REG_NONE (No value type)

1 - REG_SZ (Unicode null terminated string)

2 - REG_EXPAND_SZ (Unicode null terminated string with environment variable references)

3 - REG_BINARY (Free form binary)

4 - REG_DWORD (32-bit number)

5 - REG_DWORD_BIG_ENDIAN (32-bit number)

6 - REG_LINK (Symbolic Link)

7 - REG_MULTI_SZ (Multiple Unicode strings)

8 - REG_RESOURCE_LIST (Resource list in the resource map)

9 - REG_FULL_RESOURCE_DESCRIPTOR (Resource list in the hardware description)

10 - REG_RESOURCE_REQUIREMENTS_LIST

11 - REG_QWORD (64-bit number)

 

If the key name begins with \\machinename, @REGTYPE opens the registry on a remote machine. The remote registry service must be running on the remote machine, and you must have access and permissions. The HKEY parameter can be one of the following keys:

 

HKEY_CLASSES_ROOT (or HKCR)

HKEY_CURRENT_CONFIG (or HKCC)

HKEY_CURRENT_USER (or HKCU)

HKEY_LOCAL_MACHINE (or HKLM)

HKEY_PERFORMANCE_DATA (or HKPD)

HKEY_USERS (or HKU)

 

Example:

 

echo %@regset["HKCU\Software\JP Software\Take Command 28\MyVersion",REG_SZ,9999]

echo %@regtype["HKCU\Software\JP Software\Take Command 28\MyVersion"]

1