ZDNet UK | News | Downloads | Reviews | Shopping | AnchorDesk | Tech Update | Jobs | Games | Help | Updates
Help
ZDNet on your Palm
 
Free newsletters
 
Free downloads

Search ZDNet:
   Search     » Try our Advanced Search
 What's hot on ZDNet
Free Sub to ZDNet in print!
Get the very best of ZDNet UK for FREE in a 24-page weekly magazine
NEW: Find IT research here
For IT professionals who need hard information -- fast
Time for a change? Start here
All kinds of tech jobs on offer. Earn more, learn more, and realise your potential




ZDNet UK > Help > Windows > Delete Registry Keys Using REG Files



Delete Registry Keys Using REG Files
Neil J. Rubenking

I have read that you can add Registry keys and values using REG files but can't delete keys that way. Well, I discovered that in Windows 98, you can. Create a REG file like this:

REGEDIT4 [-HKEY_CURRENT_USER\keyname] When you launch this reg file, the specified key will be deleted.

Henri Straforelli
Burnaby, BC, Canada

In Windows 95, it's perfectly true that you can't delete a key using a reg file. In Windows 98, Me, NT 4.0, and 2000, however, you can. You simply place a minus sign at the start of the key name, inside the square brackets, as shown in your letter.

This feature isn't documented, but it does work. Importing such a reg file will delete the specified key along with all its subkeys and values--all the more reason to examine every reg file carefully.

If you want to delete just one value rather than a whole key, you'll still need an INF file. See the article "Remove Entries from the Windows 95 Registry Automatically"

 

The missing Link
Have you ever found a web site with lots of links that you'd like to use as a point of reference but were afraid that if you started clicking the links you'd never find the original site again?

· Help Forum - share your computing problems with others.

· Search for jobs.
· [an error occurred while processing this directive]

 Search the Tip Zone
  
· Developer news.


· Games Help

· Windows Downloads


· Is your software out-of-date? Update your PC.

· Site wide help

Click here for another great offer!
Click here for another great offer!
 Last Modified: 18 April 2001  


Free Newsletters |  Free Stuff |  TalkBack |  Broadband Britain |  Update your PC |  ZDNet on WAP |  Terms |  MyZDNet

Contact Us |  Your Privacy |  ZDNet International |  Advertise |  Work for ZDNet
Copyright © 2003 CNET Networks, Inc.
ZDNET is a registered service mark of CNET Networks, Inc. ZDNET Logo is a service mark of CNET NETWORKS, Inc.