Batch File Registry Changing

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

viperben1

Thread Starter
Joined
Mar 12, 2004
Messages
29
Hi

i need to change the registry in a batch file so that certail lines are either changed or added to the registry without the user having to click on ok if i make a reg file. there should be a way of coding into a batch file a line that does this.

if anyone canm i help

Thank You
 
Joined
Nov 2, 2002
Messages
22,468
You can do this very easily with a batch file. It already sounds like you know how to make the registry entries ok so I won't go into that part of it.

For example, if the registry file is "viperben1.reg",
the batch file just needs to be "regedit /s viperben1.reg"

To delete an entire key it would be something like:
REGEDIT4
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\Common\Assistants]

Would delete Assistants key and everything below it

To delete just a single entry it would be something like:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"MSConfig"=-
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top