Discussion Locked

REG file refuses to merge

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I accidentally closed this question so I am reposting w/ more points too!

I just got my TechRepublic 'Windows NT Tips' with the subject 'User profiles-keep them slim and trim'.

So I manually place the registry entry in my machine to try it out. It works.

Now I create a REG file by exporting my key. The contents look like this;
--------------------
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ExcludeProfileDirs"="Temporary Internet Files;History;Application Data\Microsoft\Outlook Express"
--------------------

The problem is, this REG file refuses to merge. REGEDIT reports it worked ok even when run by an administrator but it does not show up unless entered thru the registry editor.

Anyone know why?

2 replies

by lee v.

Sent you an E-mail regarding this one. This field is too short here.... Check your word-wrapping in your text editor. Your 4 lines after REGEDIT 4 and the blank line should only be 2 in your file for it to work. My e-mail explains a bit more clearly. You also need 2 blank lines at the end, I believe.

by karlww

Hi Lee,
I figured it out. Very subtle.
Any back slashes in the values must have a double \\ like this;
--------------------------
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ExcludeProfileDirs"="Temporary Internet Files;History;Application Data\\Microsoft\\Outlook Express"
--------------------------

I don't know why regedit told me it succeeded though!

This discussion is closed to new replies.