Solved

Problem 'Cannot import test.reg'

Posted on 2009-07-01
2
243 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

776 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