- May
- 13,399
- 190
This was working back in September. @REGQUERY fails whenever a hostname, local or remote, is given.
With a '.' as hostname, it seems to work but gives a result which is incorrect.
And the help for many of the @REG functions contains a sentence apparently copied from @REGBREAD but not personalized for the function in question. For example, %REGQUERY's help says
Code:
v:\> echo %@regquery[HKU\.DEFAULT\Environment\TEMP]
%USERPROFILE%\AppData\Local\Temp
v:\> echo %_winname
ZZ
v:\> echo %@regquery[\\zz\HKU\.DEFAULT\Environment\TEMP]
-1
v:\> echo %@regquery[\\lucky\HKU\.DEFAULT\Environment\TEMP]
-1
With a '.' as hostname, it seems to work but gives a result which is incorrect.
Code:
v:\> echo %@regquery[\\.\hklm\system\currentcontrolset\services\w32time\w32tmparams\ratedefault]
53 (incorrect)
v:\> echo %@regquery[hklm\system\currentcontrolset\services\w32time\w32tmparams\ratedefault]
156001 (correct)
And the help for many of the @REG functions contains a sentence apparently copied from @REGBREAD but not personalized for the function in question. For example, %REGQUERY's help says
Code:
If the key name begins with \\machinename, @REGBREAD opens ...