reg add question

J

jg

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
 
W

WTC

jg said:
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


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

Notice the "/" is not in front of the ADD.

For more information, type the following in the command prompt.

reg add /?

For more information of the REG function, see the following documentation:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/reg.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top