Operating System - Microsoft
1748227 Members
4270 Online
108759 Solutions
New Discussion юеВ

Re: How to delete registry directory with out regedit

 
SOLVED
Go to solution
Muthukumar_5
Honored Contributor

How to delete registry directory with out regedit

Is there any command line utility to delete registry directories?

thx.
Easy to suggest when don't know about the problem!
8 REPLIES 8
Volker Spies
Trusted Contributor
Solution

Re: How to delete registry directory with out regedit

Hello Muthukumar,

use a .reg file with regedit.exe and put a minus "-" in front of the key you want to delete, or a "-" after the key to delete the value.

Have a look here.
http://www.robvanderwoude.com/index.html
-> Batchfiles -> regedit

Regards

Volker
Igor Karasik
Honored Contributor

Re: How to delete registry directory with out regedit

You can use reg.exe tool
http://www.petri.co.il/reg_command_in_windows_xp.htm

Regards, Igor
Mugilvannan
Valued Contributor

Re: How to delete registry directory with out regedit

Hi,
I tried in both way like below:


REGEDIT -[HKEY_LOCAL_MACHINE\SOFTWARE\DELL Corporation]

Output - Is not deleting anything in my registry

After downloading reg.exe,

REG DELETE [HKEY_LOCAL_MACHINE\SOFTWARE\DELL Corporation]

Output - is searching for \\corporation host becoz there is a space between Dell & Coroporation.

What to do?
If U need a helping hand, U will find one at the end of your arm
Muthukumar_5
Honored Contributor

Re: How to delete registry directory with out regedit

Guys, show him a way to delete registries with spaces?

hth.
Easy to suggest when don't know about the problem!
Volker Spies
Trusted Contributor

Re: How to delete registry directory with out regedit

Hi Mugilvannan,

try it with Quotation marks

REGEDIT -"[HKEY_LOCAL_MACHINE\SOFTWARE\DELL Corporation]"

So that the blank does not matter.

Regards

Volker
Mugilvannan
Valued Contributor

Re: How to delete registry directory with out regedit

Finally it working for,

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\DELL Corporation\MA_ROOT"

But even though I'm using /f is not force to delete without prompt. Still its asking for

Permanently delete registry value MA_ROOT (Y/N)?

How to resolve this?
If U need a helping hand, U will find one at the end of your arm
Igor Karasik
Honored Contributor

Re: How to delete registry directory with out regedit

It is strange. Force working well for me.
Anyway, try to use :
echo Y | REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\DELL Corporation\MA_ROOT"

Mugilvannan
Valued Contributor

Re: How to delete registry directory with out regedit

I resolved it making a .sh file which calling the .bat file :)
.sh file contains:
cd /
C:\del_reg.bat<Y
EOF
If U need a helping hand, U will find one at the end of your arm