Registry Editing from Command Line


  1. Posts : 273
    Windows 7 Home Premium 64bit
       #1

    Registry Editing from Command Line


    So I am trying to delete some keys from the registry using command line, eventually I am going to turn it into a batch file because it is something I may have to do frequently. Basically I want to delete a folder full of registry keys without having to list every key individually. Anyone have an idea how to do this?
      My Computer


  2. Posts : 6,668
    Windows 7 x64
       #2

    I don't know of a way to do whole entries at once using reg.exe


    You could however just create a .reg file that would blank them all in one click
    You'd have to learn the .reg file lingo though.
      My Computer


  3. Posts : 1,127
    Win7U 64 RTM
       #3

    This might give you something to start with:

    How To Delete And Add Registry Keys From The Command Line

    The required syntax seems pretty simple, then just create a batch file.

    And here's another link that may provide additional info:

    http://commandwindows.com/reg.htm

    James
      My Computer


  4. Posts : 273
    Windows 7 Home Premium 64bit
    Thread Starter
       #4

    James Colbert said:
    This might give you something to start with:

    How To Delete And Add Registry Keys From The Command Line

    The required syntax seems pretty simple, then just create a batch file.

    And here's another link that may provide additional info:

    Managing the Windows Registry from the Command Prompt with Reg.exe

    James
    Yeah I read both those articles neither of them provide the deletion of folders containing keys. I was just trying to make something that would fix an end user issue with a simple double-click, job security if I have to keep resetting their settings I guess though. :)
      My Computer


  5. Posts : 273
    Windows 7 Home Premium 64bit
    Thread Starter
       #5

    Alright, found a way to accomplish what I wanted to do, its not a batch file, but it is a .reg file that should be able to be used on any computer with the software installed. Here is the link I used as reference for anyone else looking to do something similar.
    How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
      My Computer


  6. Posts : 6,668
    Windows 7 x64
       #6

    Maguscreed said:
    I don't know of a way to do whole entries at once using reg.exe


    You could however just create a .reg file that would blank them all in one click
    You'd have to learn the .reg file lingo though.

    ...yeah I kind of figured that would be your solution :)
      My Computer


  7. Posts : 1,127
    Win7U 64 RTM
       #7

    Devux said:
    Alright, found a way to accomplish what I wanted to do, its not a batch file, but it is a .reg file that should be able to be used on any computer with the software installed. Here is the link I used as reference for anyone else looking to do something similar.
    How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
    Thanks for posting your solution.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:10.
Find Us