Solved

Change Registry Key using Batch file

Posted on 2007-12-03
5
19,304 Views
Last Modified: 2012-08-14
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
Comment
Question by:http:// thevpn.guru
  • 4
5 Comments
 
LVL 32

Expert Comment

by:and235100
ID: 20401428
0
 
LVL 32

Accepted Solution

by:
and235100 earned 500 total points
ID: 20401436
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
 
LVL 32

Expert Comment

by:and235100
ID: 20401440
0
 
LVL 32

Expert Comment

by:and235100
ID: 20401741
Glad that I could help.
Thank you.
0
 
LVL 19

Author Comment

by:http:// thevpn.guru
ID: 20401800
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question