Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Registry Editing from Command Line


21 Jun 2011   #1

Windows 7 Home Premium 64bit
 
 
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 System SpecsSystem Spec
.

21 Jun 2011   #2

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

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 System SpecsSystem Spec
21 Jun 2011   #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 System SpecsSystem Spec
.


21 Jun 2011   #4

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by James Colbert View Post
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 System SpecsSystem Spec
21 Jun 2011   #5

Windows 7 Home Premium 64bit
 
 

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 System SpecsSystem Spec
21 Jun 2011   #6

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Maguscreed View Post
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 System SpecsSystem Spec
21 Jun 2011   #7

 
 

Quote   Quote: Originally Posted by Devux View Post
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 System SpecsSystem Spec
Reply

 Registry Editing from Command Line




Thread Tools



Similar help and support threads for2: Registry Editing from Command Line
Thread Forum
Solved backup registry in command line Backup and Restore
backup registry in command line Backup and Restore
Solved How to "Duplicate These Displays" via command line or registry? Customization
add folders in indexing options using registry or command line? Performance & Maintenance
How can I set this via command-line or registry? Customization
Command line Registry Permission General Discussion
Registry Editing Performance & Maintenance

Our Sites

Site Links

About Us

Find 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 06:41 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33