Solved

Problem 'Cannot import test.reg'

Posted on 2009-07-01
2
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
iSeries email authority 6 93
AutoIncrement column based of FK 11 64
IDE for Python 5 73
$_GET call between URL 3 44
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 …

733 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