I don't want the whole branch!!

S

Spin

The registry value called "cache" in the following key sets where Windows
stores Temporary Internet Files:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders

I want to change the "cache" value then save out this value to merge it into
another machine. Problem is when I save it, the whole branch Shell Folders
gets saved out. I don't want the whole branch, just the one value. How can
I do this?

--
 
D

Dave Patrick

After you export the file, open it with notepad.exe and delete the unwanted
Reg_Expand_Sz values.
 
S

Spin

Ok, sounds good but....

When I then merge the reg key onto the other machine, will it delete all
other keys in that branch because they are no longer in the merge file?

--

Dave Patrick said:
After you export the file, open it with notepad.exe and delete the unwanted
Reg_Expand_Sz values.
 
D

Dave Patrick

No

If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

regedit /s filename.reg to import silently
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top