Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change Registry Key using Batch file

Posted on 2007-12-03
5
Medium Priority
?
19,373 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 2000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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…
Six Sigma Control Plans

704 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