Reg File Creation

djnes

Fully [H]
Joined
Mar 24, 2000
Messages
19,560
I'm not very good in the area of the registry, but here goes. I know you can create reg files to add certain entries, but how would you go about deleting keys via a reg file? For example, on every XP machine of mine, I always go to regedit, and to the following string:
HKey Local Machine > Software > Microsoft > Windows > Current Version > Explorer > Volume Caches > Compress Old Files
and delete the Compress Old Files key. Can this be made into a .reg file, so instead of drilling through the registry, I can just run the file to remove that particular key?
 
Just add the minus " - " sign in front of the registry key you want to delete:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Explorer\ VolumeCaches\Compress old files]



It works for me all the time :D

oldmx
 
Okay, that's a little embarassing that the solution was so simple. Thanks!
 
Back
Top