Solved

Problem 'Cannot import test.reg'

Posted on 2009-07-01
2
237 Views
Last Modified: 2013-11-10
Hello.
I am trying to run a log on script that will set the outlook stationery theme to blank.
I exported the portion of the registry as I would like to have it to a .reg file, which
is stored on a server path of \\server1\public.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\MailSettings]
"MarkCommentsWith"=hex:4e,00,65,00,69,00,62,00,61,00,72,00,67,00,65,00,72,00,\2c,00,20,00,43,00,65,00,6c,00,65,00,73,00,74,00,65,00,00,00
"Template"=hex(2):00,00
"NewTheme"=""

After mapping drives in my log in script, I have inserted the following line
Regedit.exe "\\server1\public/StationeryLD.reg"

It prompts me to accept, then dislayes this message
Cannot import StationeryLD.reg: Error opening the file.

Any help would be greatly appreciated.
Thanks
0
Comment
Question by:celesn
2 Comments
 
LVL 13

Accepted Solution

by:
Brian Withun earned 500 total points
ID: 24763873
Either the file is being rejected by RegEdit for whatever reason, or the file just isn't available as you intend.

TRY THIS FROM A DOS PROMPT>  Notepad.exe "\\server1\public/StationeryLD.reg"

If notepad can open the file, then you know all the network pieces are correct.  You then have to figure out why RegEdit doesn't like the file.

If notepad cannot open the file, then you know there's something wrong with the way you're making the file available.  
Maybe that one FORWARDslash is the problem.  (my network supports either / or \)
Maybe the share is not accessible to the user attempting to read the file.

Report back your findings if you do not discover the problem yourself...

Brian
Withun
0
 

Author Closing Comment

by:celesn
ID: 31598933
Thanks so much.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countX 22 70
allStar challenge 1 43
create an incrementing variable name AutoHotKey 5 58
groovy example issue 10 70
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now