deleting registry key in dos

  • Thread starter Thread starter royce
  • Start date Start date
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!!!
 
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.
 
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.
 
Back
Top