PDA

View Full Version : Deleting item in registry



iawia
07-06-2000, 05:39 PM
I need to be able to offer two registry setting for two different apps on the same PC. I can run a script to add a registry setting but how can I delete the other? I need to be able to have one entry for one app and a different entry for the other app. (Quark needs a different registry setting for fonts than does Ventura)

geeman
07-06-2000, 07:38 PM
You can delete a registry key similar to importing one. If I wanted to delete the key [HKLM\Software\Me], I would type the following either at a DOS prompt or in a batch file:

regedit /l:c:\windows\system.dat /r:c:\windows\user.dat /d [HKEY_LOCAL_MACHINE\Software\Me]

The L switch tells it where 'system.dat' lives. The R switch tells it where 'user.dat' lives. The D switch tells it to delete the specified key.

Is this what you need?

-Geeman-