Tech Support Guy banner
  • Please post in our Community Feedback thread for help with the new forum software! If you are having trouble logging in, please Contact Us for assistance.
Status
Not open for further replies.
1 - 3 of 3 Posts

·
Registered
Joined
·
29 Posts
Discussion Starter · #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
 

·
Registered
Joined
·
22,468 Posts
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"=-
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top