Windows XP Tips, Tricks, Settings and more ...

MCSE Training Courses / Cisco Training Courses

Home/   Desktop/   Email/   Internet Explorer/   MSDos/   Networking/   Printer/   Registry/   
Training/   Windows 2000/   Windows 98/   Windows ME/   Windows NT 4.0/   Windows Vista/   Windows XP/

Automatically Deleting a Registry Key

In Category: Registry

Normally you cannot automatically delete registry keys from reg file. But there is a way...

Simply include a minus sign inside the left bracket before the main key.

For example.
If you want to delete the key HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Office \ 8.0 \ Common \ Assistants, your regfile would simply look like:


REGEDIT4

[-HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\Common\Assistants]

This would delete that key and any below it.

 

FREE Learn English - Food
Speak English - Drinks
Windows Training (new)

Copyright 2007-2010 - RCS Limited. Terms & Conditions