PDA

View Full Version : Removal of registry entry via batch


Nathanc
03-13-1999, 04:58 PM
I am trying to remove an entry via the regedit4 batch command.
I know how to set the data to be ignored, how can you set it to remove an entry?

ie. I want to remove an .exe from the run services key, and I can set that key to contain no data and that fixes the boot up senerio but it still leaves the entry. I want to eliminate the entry all together.....looks better that way. :)

Nathan C. Carnahan (MCP, CNA, A+)

rath
03-13-1999, 09:48 PM
Why not use the System configuration utility if your using Win98, it's much safer. But to answere your question...The Syntax is DELREG or DELKEY depending on what your doing. Refer to the Microsoft SDK for the low down. Be careful and back up that registry before you execute that batch.

mccoyth
09-21-2000, 06:19 PM
is there an equivalent for windows nt?

POBrien
09-21-2000, 08:41 PM
The best way to accomplish your goal is using.inf files. use the search to the left and type in inf. There will be lots of examples on how to remove reg subkeys and applicable values and value data.

stereo_freak
09-23-2000, 06:19 PM
If you lok through the last week or two on this discussion forum, you will find the answer you are looking for.... I don't recall the title of the article that explains how to delete registry lines, but someone finally posted a solution that actually works...


It involves doing a simple .reg file, but the registry value you are changing has a "-" (negative) sign at the beginning... I thank the person who put this hint very much.... It's made writing log-in scripts much easier for me



GJB

Simon Clausen
09-24-2000, 02:13 AM
It's also been added to the FAQ at http://www.regedit.com/help/#6a

Simon Clausen
---
RegEdit.com - Windows Registry Guide
http://www.regedit.com/