![]() |
How To get the paht to my current directory?
hello,
I am trying to read from a text file like this: StreamReader sr = new StreamReader(Application.StartupPath); but because the Application.StartupPath = "C:\Program Files\Microsoft Office\Office12" I cant read the file from the add in directory how can i get the path? -- thank you... |
How To get the paht to my current directory?
This really should be posted to a C# or .NET group, it has nothing at all to
do with Outlook. Use Assembly.GetExecutingAssembly().Location to get the location where the code is installed. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "pc_adv" wrote in message ... hello, I am trying to read from a text file like this: StreamReader sr = new StreamReader(Application.StartupPath); but because the Application.StartupPath = "C:\Program Files\Microsoft Office\Office12" I cant read the file from the add in directory how can i get the path? -- thank you... |
All times are GMT +1. The time now is 12:29 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com