1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Batch File Registry Changing

Discussion in 'Windows XP' started by viperben1, Apr 7, 2004.

Thread Status:
Not open for further replies.
  1. viperben1

    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
     
  2. Dan O

    Dan O

    Joined:
    Feb 13, 1999
    Messages:
    8,974
  3. Bob Cerelli

    Bob Cerelli

    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"=-
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/218145

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice