deleting registry key in dos

R

royce

im creating a batch file and i need to know how to delete
a registry key in dos. can someone show me the command for
lets say deleting

mycomputer\hkey_local_machine\software\microsoft\internet
explorer\main

just an example. thanks for the help!!!
 
M

Mark V

In said:
im creating a batch file and i need to know how to delete
a registry key in dos. can someone show me the command for
lets say deleting

mycomputer\hkey_local_machine\software\microsoft\internet
explorer\main

just an example. thanks for the help!!!

Since there is no "DOS" in NTx OSs it is unclear what you mean...

Cannot be done from DOS (as in MS-DOS/Win9x)

From a command prompt (CMD.EXE) in Windows NTx you can Merge a .REG
file with: regedit.exe /s myfile.reg

And the Regedit REG file syntax for removing is:
Remove KEY
[-HKEY_CLASSES_ROOT\.zzz]

Remove VALUE
[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-

Does not work for a ("Default)" valuename exactly. Use
@=-

But I suggest you have a full registry backup in advance.
 
M

Mark V

In said:
im creating a batch file and i need to know how to delete
a registry key in dos. can someone show me the command for
lets say deleting

mycomputer\hkey_local_machine\software\microsoft\internet
explorer\main

just an example. thanks for the help!!!

Since there is no "DOS" in NTx OSs it is unclear what you mean...

Cannot be done from DOS (as in MS-DOS/Win9x)

From a command prompt (CMD.EXE) in Windows NTx you can Merge a .REG
file with: regedit.exe /s myfile.reg

And the Regedit REG file syntax for removing is:
Remove KEY
[-HKEY_CLASSES_ROOT\.zzz]

Remove VALUE
[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-

Does not work for a ("Default)" valuename exactly. Use
@=-

But I suggest you have a full registry backup in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top