Solved

Change Registry Key using Batch file

Posted on 2007-12-03
5
19,360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

626 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