1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

How can I remove a KEY from the registry using a .reg file?

Discussion in 'Legacy Windows' started by tjbuc, 2004/02/05.

Thread Status:
Not open for further replies.
  1. 2004/02/05
    tjbuc

    tjbuc Well-Known Member Thread Starter

    Joined:
    2002/08/15
    Messages:
    24
    Likes Received:
    0
    Can someone tell me how to remove a KEY from the Windows 98 registry using a .reg file?

    I know I can delete a VALUE using =-

    e.g to remove the "calls" value in the following key

    [HKEY_CURRENT_USER\Software\My Software\Internet Statistics]
    "Calls "=-

    but what about removing the KEY itself ? i.e
    [HKEY_CURRENT_USER\Software\My Software\Internet Statistics]

    I tried various syntax without success.

    P.S
    I know I can delete KEYs easily by running regedit, but I want to know how to do this from a .reg file.

    Thanks for any help.
    tjbuc
     
  2. 2004/02/05
    goddez1

    goddez1 Inactive

    Joined:
    2002/01/12
    Messages:
    2,975
    Likes Received:
    49

  3. to hide this advert.

  4. 2004/02/05
    tjbuc

    tjbuc Well-Known Member Thread Starter

    Joined:
    2002/08/15
    Messages:
    24
    Likes Received:
    0
    solution...

    Thanks for the link Goddez. Solution form that page...

    To delete a complete KEY, e.g
    [HKEY_CURRENT_USER\Software\My Software\Internet Statistics]

    put a - inside the bracket at the start of the key name e.g

    [-HKEY_CURRENT_USER\Software\My Software\Internet Statistics]

    NOTE that any subkeys beneath this will also be deleted!

    tjbuc
     
  5. 2004/02/05
    goddez1

    goddez1 Inactive

    Joined:
    2002/01/12
    Messages:
    2,975
    Likes Received:
    49
    No problem and your most welcome. :)
     
Thread Status:
Not open for further replies.

Share This Page

  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.