Re: Outlook directoty
- From: "Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx>
- Date: Fri, 18 May 2007 09:41:56 -0400
Did you make a typo when you didn't use quotes around the last part of the path?
It really should be:
string textFilePath = System.Environment.GetFolderPath
(System.Environment.SpecialFolder.LocalApplicationData) + "\\Microsoft\\Outlook";
I tested using a StreamReader to read lines from a dummy text file I put in that file path and I was able to read the text file with no problems.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Yael" <Yael@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:2F76D1AE-1037-4001-8919-4A217765CAF5@xxxxxxxxxxxxxxxx
Finally I found what I wanted!!!
I'm sorry if I didn't was clearly (my english is not the best :))
My goal was to get this path:
C:\Documents and Settings\Owner\Local Settings\Application
Data\Microsoft\Outlook
============ Start Code ============================
And there I put a txt file and read/write this txt file from my com add-in.
but I'm getting an error for access to this file..maybe I neet to set
shering or someting?
I was changed Outlook folder to not be read only, but I still get no access
to my txt file
C:\Documents and Settings\Owner\Local Settings\Application
Data\Microsoft\Outlook\myFile.txt
string textFilePath = System.Environment.GetFolderPath
(System.Environment.SpecialFolder.LocalApplicationData) +\\Microsoft\\Outlook;
============ End Code =============================
.
- References:
- Re: Outlook directoty
- From: Ken Slovak - [MVP - Outlook]
- Re: Outlook directoty
- From: Ken Slovak - [MVP - Outlook]
- Re: Outlook directoty
- From: Ken Slovak - [MVP - Outlook]
- Re: Outlook directoty
- Prev by Date: Re: changing appointment propreties
- Next by Date: Re: Problem loading addin
- Previous by thread: Re: Outlook directoty
- Next by thread: How to determine whether running embedded in another app?
- Index(es):