@REGSET?

May 20, 2008
10,622
81
Syracuse, NY, USA
On Windows10/x64, what's wrong here?

Code:
v:\> echo %@regquery[hklm\system\currentcontrolset\services\w32time\w32tmparams\weighthigh]
546

v:\> echo %@regset[hklm\system\currentcontrolset\services\w32time\w32tmparams\weighthigh,reg_dword,546]
TCC: (Sys) The parameter is incorrect.
 "%@regset[reg_dword,546]"
 
May 20, 2008
10,622
81
Syracuse, NY, USA
(Doh!) It works a little better if I do it elevated. But then I'd expect the failing one to give "Access denied" and not remove the key name from the error string.
 
Thread starter Similar threads Forum Replies Date
V Support 2
R Support 6
MikeBaas Support 14
Joe Caverly Support 7