Tech Support > Microsoft Windows > Setup & Deployment > reg add question
reg add question
Posted by jg on January 22nd, 2006


I was testing the possibility of using simple bat file to change/add entry
in registry
I tried a simple harmless on from limited user ID in command prompt:

reg /ADD hkcu\Software\zztestkey /v zzvalue /t REG_SZ /d Newvalue /f

and I got
Error: Bad operation. Use /? for help

What have I done wrong? I failed to see any syntax error

I tried HKCU, HKEY_CURRENT_USER also in place of hkcu but still same errors
I tired also as power user in a brand new PC and I got same error msg



Posted by Ramesh, MS-MVP on January 22nd, 2006


Why that extra slash (/). Use "reg ADD" instead.

For examples, type in:

REG ADD /?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"jg" <junk@mail.pls> wrote in message
news:emSP6exHGHA.3448@TK2MSFTNGP10.phx.gbl...
I was testing the possibility of using simple bat file to change/add entry
in registry
I tried a simple harmless on from limited user ID in command prompt:

reg /ADD hkcu\Software\zztestkey /v zzvalue /t REG_SZ /d Newvalue /f

and I got
Error: Bad operation. Use /? for help

What have I done wrong? I failed to see any syntax error

I tried HKCU, HKEY_CURRENT_USER also in place of hkcu but still same errors
I tired also as power user in a brand new PC and I got same error msg




Similar Posts