.reg file not working

Z

zuckermanf

I have the following reg file (sorry for the word wrap).
It creates the date key, but not the path key.
Any suggestions?
Fred

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security
\Trusted Locations\Location2]
"Date"="03/23/2009 12:00"
"Path"="C:\Program Files\DB Apps\"
 
R

Ron Badour

You need an empty line under the last line of the .reg file.

--
Regards

Ron Badour
MS MVP
Windows Desktop Experience
 
A

Al Falfa

I have the following reg file (sorry for the word wrap). It creates the
date key, but not the path key. Any suggestions?
Fred

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security
\Trusted Locations\Location2]
"Date"="03/23/2009 12:00"
"Path"="C:\Program Files\DB Apps\"

Fred, try:
"Path"="C:\\Program Files\\DB Apps\\"

If the Path string itself needs literal doublequotes because of the
embedded spaces, use:
"Path"="\"C:\\Program Files\\DB Apps\\\""
 
Z

zuckermanf

I have the following reg file (sorry for the word wrap). It creates the
date key, but not the path key. Any suggestions?
Fred
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security
\Trusted Locations\Location2]
"Date"="03/23/2009 12:00"
"Path"="C:\Program Files\DB Apps\"

 Fred, try:
"Path"="C:\\Program Files\\DB Apps\\"

 If the Path string itself needs literal doublequotes because of the
embedded spaces, use:
"Path"="\"C:\\Program Files\\DB Apps\\\""

Al Falfa,
Thank you very much. Doubling up on the backslashes worked.
I would've never guessed that solution.
Fred
 
A

Al Falfa

I have the following reg file ... It creates
the date key, but not the path key. Any suggestions?
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security
\Trusted Locations\Location2]
"Date"="03/23/2009 12:00"
"Path"="C:\Program Files\DB Apps\"
Al said:
 Fred, try:
"Path"="C:\\Program Files\\DB Apps\\"

 If the Path string itself needs literal doublequotes because of the
embedded spaces, use:
"Path"="\"C:\\Program Files\\DB Apps\\\""

Al Falfa,
Thank you very much. Doubling up on the backslashes worked. I would've
never guessed that solution.

Fred,
Thanks for the update.
 

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

Similar Threads


Top