Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 19391
  • Last Modified:

Change Registry Key using Batch file

Hi All

I need to change a registry key on XP using a batch file from 1 to 0, the key is located in

HKEY_CURRENT_USER\SOFTWARE\MY_APP\SETTINGS\changethiskey

Thx
0
http:// thevpn.guru
Asked:
http:// thevpn.guru
  • 4
1 Solution
 
and235100Commented:
Of course - you will have to do this as a logon script - as HKCU doesn;t exist unless a user is logged in.

reg add HKCU\SOFTWARE\MY_APP\SETTINGS /v changethiskey /t key type /d data value /f
0
 
and235100Commented:
0
 
and235100Commented:
Glad that I could help.
Thank you.
0
 
http:// thevpn.guruAuthor Commented:
Thank you for your prompt reponse..in case someone stumbles over this question the  command is as follows 'with correct arguments'

reg add HKCU\SOFTWARE\MyProg\DebugLog /v LogMCU /t REG_DWORD /d 0 /f'
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now