Solved

Change Registry Key using Batch file

Posted on 2007-12-03
5
19,242 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is about my first experience with programming Arduino.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now