Need help to delete registry key

(imported topic written by Raja9109)

Hi Everyone,

cananyone help me to delete registry key.

Here is sample script which I have created for deleting registry script. Pls validate and confirm.

""I wan t delete Ayudame registry key :----

delete __appendfile

delete regdel.reg

appendfile REGEDIT4

appendfile

HKEY_LOCAL_MACHINE\SOFTWARE\IBM SDA\Ayudame

move __appendfile regdel.reg

wait regedit /s regdel.reg

Thanks,

Raja

(imported comment written by SystemAdmin)

To delete a registry key, you need to put a “-” at the beginning (within the brackets). Otherwise, you’re asking regedit to create the key.

See: http://support.microsoft.com/kb/310516

So for your sample, change the appendfile to be…

appendfile

-HKEY_LOCAL_MACHINE\SOFTWARE\IBM SDA\Ayudame

-Paul

(imported comment written by Raja9109)

Its works fine… big thanks… Paul