Tech Support Guy banner
Status
Not open for further replies.

Batch File Registry Changing

1.8K views 2 replies 3 participants last post by  Bob Cerelli  
#1 ·
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
 
#3 ·
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
Not open for further replies.
You have insufficient privileges to reply here.