Reg file does not work

C

CS

I give up. I have been trying all kinds of variations on the below and
none of them actually work. When I double click on it, it runs ands
says that it merged successfully. HA! No, it did not! A look at the
regfile shows no changes. Even a search reveals nothing. It never
creates the new key value of Placesbar.

I've tried with and without quotes, with and without the [], with and
without \. I have also tried it without the first line, thinking that
maybe I needed to create the key before assigning it a a value, but
no..... Like I said, they all lied.

What am I doing wrong with it? XP-P



Windows Registry Editor Version 5.00

reg add
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar]"
reg add
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar]
"Place0"="C:\\Temp0""
reg add
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar]
"Place1"="C:\\Temp1""
reg add
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar]
"Place2"="C:\\Temp2""
reg add
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar]
"Place3"="C:\\Temp3 With A LFN Test""

End of reg file

Thanks for any help.

CS

email addy is munged to bugger spammers
 
A

Ayush

Replied to [CS]s message :
I give up. I have been trying all kinds of variations on the below and
none of them actually work. When I double click on it, it runs ands
says that it merged successfully. HA! No, it did not! A look at the
regfile shows no changes. Even a search reveals nothing. It never
creates the new key value of Placesbar.

I've tried with and without quotes, with and without the [], with and
without \. I have also tried it without the first line, thinking that
maybe I needed to create the key before assigning it a a value, but
no..... Like I said, they all lied.

What am I doing wrong with it? XP-P


The syntax is :
reg add "KEY NAME" /v "VALUE NAME" /d "VALUE DATA"

so you need :
reg add
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar"
/v "Place0" /d "C:\\Temp0"
or:
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar /v
Place0 /d C:\\Temp0

For more info, type: reg add /? at command prompt.
 
D

Detlev Dreyer

CS said:
I've tried with and without quotes, with and without the [], with and
without \. I have also tried it without the first line, thinking that
maybe I needed to create the key before assigning it a a value, but no.

What am I doing wrong with it? XP-P

First, there is no need to mess around with a .reg file since "TweakUI"
allows to edit the "Places" bar. "TweakUI":
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

Second, export that key when done in order to see the correct syntax.
 
P

Parhar

The following worked for me. Copy/paste into a .reg file and double-
click to merge:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
\comdlg32\Placesbar]
"Place0"="C:\\Temp0"
"Place1"="C:\\Temp1"
"Place2"="C:\\Temp2"
"Place3"="C:\\Temp3 With A LFN Test"


Hope this helps.

Parhar
http://www.askarya.com/tm/tm.asp
*Taskbar Manager* - Drag and Drop buttons on Windows taskbar
 
R

Ramesh, MS-MVP

As others said. To know the syntax of .REG files, see this article:

How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file:
http://support.microsoft.com/kb/310516

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


I give up. I have been trying all kinds of variations on the below and
none of them actually work. When I double click on it, it runs ands
says that it merged successfully. HA! No, it did not! A look at the
regfile shows no changes. Even a search reveals nothing. It never
creates the new key value of Placesbar.

I've tried with and without quotes, with and without the [], with and
without \. I have also tried it without the first line, thinking that
maybe I needed to create the key before assigning it a a value, but
no..... Like I said, they all lied.

What am I doing wrong with it? XP-P



Windows Registry Editor Version 5.00

reg add
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar]"
 
F

frodo

this is what a places bar reg file should look like:

-----------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]
"Place0"=dword:00000011
"Place1"=dword:00000005
"Place2"="G:\\Documents and Settings\\Paul\\My Documents\\DL"
"Place3"=dword:0000002e
"Place4"=dword:00000000

; this is a comment, anything after a non-quoted semicolon is a comment
-----------

this file has 9 lines (2 and 8 are blank); in this post it may have
wrapped, you DONT WANT it wrapped when you give it to regedit.

in it, all the places are standard/default, except Place2: note it's a
string, not a dword, it's enclosed in quotes, and each backslash is
doubled. it's also on a SINGLE LINE (as they all are). you make this file
in NOTEPAD, but save it w/ a .REG extension. The very first line is
IMPORTANT: it tells reg edit the version of the file, and hence how to
decode it. 5.0 is XP's regedit version.

for the standard places, the value is a code number rather than a path. a
good google search will find you what these values are.

---

yes, you can use tweakui to edit these; when you type the path into
tweakui you don't need the quotes or the double backslashes; instead use
the dropdown list that appears as you begin typing to navigate - be
careful, it's a pain; don't hit enter, it'll just close on you! instead
hit backslash to continue navigating along the path. After some/much
frustration you'll get the hang of it.

BTW, office also has custom places bar; it's at:

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\Open Find\Places

the easiest way to edit it is in office itself. open any office app,
choose File | Open, navigate to the folder you want to add, highlight it,
then in the tools dropdown (upper right corner), choose "Add to My
Places". It'll be added to the leftmost pane. To manipulate an item
already in the leftmost plan just right-clivk on it. not too intuative,
but it's there.

good luck
 
C

CS

Detlev Dreyer wrote:

First, there is no need to mess around with a .reg file since "TweakUI"
allows to edit the "Places" bar. "TweakUI":
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

I did not know that Tweak UI does this. Thanks for the heads-up. Time
to see what other goodies are in it that I have forgotten.
Second, export that key when done in order to see the correct syntax.

I had actually exported it from another of my boxes that had it working,
which is where I got the syntax. I hate typing all that long, long
listing info.

Thanks,
CS
 
C

CS

Nope, didn't work either. I also tried it with adding the "reg add" in
front of the first line. Did you actually check your reg file
afterwards and see it there? When I look in mine, it is not there.

Thanks,
CS
 
C

CS

Thanks for the link. I will read it over. I had checked some other
articles also before posting, which is why it was even more frustrating
that it did not work.

CS
 
C

CS

this is what a places bar reg file should look like:

-----------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]
"Place0"=dword:00000011
"Place1"=dword:00000005
"Place2"="G:\\Documents and Settings\\Paul\\My Documents\\DL"
"Place3"=dword:0000002e
"Place4"=dword:00000000

; this is a comment, anything after a non-quoted semicolon is a comment
-----------

this file has 9 lines (2 and 8 are blank); in this post it may have
wrapped, you DONT WANT it wrapped when you give it to regedit.

in it, all the places are standard/default, except Place2: note it's a
string, not a dword, it's enclosed in quotes, and each backslash is
doubled. it's also on a SINGLE LINE (as they all are). you make this file
in NOTEPAD, but save it w/ a .REG extension. The very first line is
IMPORTANT: it tells reg edit the version of the file, and hence how to
decode it. 5.0 is XP's regedit version.

for the standard places, the value is a code number rather than a path. a
good google search will find you what these values are.

Well, I cannot for the life of me see the difference between this one
above and one that I first tried. I have compared them line for line.
Mine does not work, this one does. Both are .reg files. Both have the
same spacing and non-word wrap. Something is truly wierd. I am using
TextPad as my editor.

I copied and pasted yours into a new file, and it works. Then I copied
and pasted the working one into mine that I had been trying to make
work. No go! There is something about my file holder that is wrong and
that I cannot see.

I'm just going to use the working one and give up on why the other exact
looking one did not work.

Thanks for your help!
CS

On, and thanks for the other tips!
 

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