Re: Outlook directoty

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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 =============================

.