![]() |
Getting a folder give a path
Hello,
I am asking the folder path from the user as input in my progam via a config file. So the user enters something like "\\Mailbox - User\Inbox\TestMessageFolder". I then take this folder and analyse/filter the messages in "TestMessageFolder" I am stuck trying to access the folder via the obvious API in .NET. I tried 1. GetDefaultFolder - (Obviously) fails because the user entered folder, "TestMessageFolder", may not be default. 2. GetFolderFromID - Very confusing as the first parameter entryIDFolder can be passed as a string i.e. "\\Mailbox\Inbox\TestmessageFolder" but how can I get the second parameter ,entryIDStore. Thanks for any help that you can offer. - K. |
Getting a folder give a path
Sorry, forgotto add the following
Language used - C# using Visual Studio .NET 2003 and using Outlook 2003. |
Getting a folder give a path
Sorry, forgot to add the following
Language used - C# using Visual Studio .NET 2003 and using Outlook 2003. |
Getting a folder give a path
Sorry, forgot to add the following
Language used - C# using Visual Studio .NET 2003 and using Outlook 2003. |
Getting a folder give a path
You need to parse the folder path and then walk the folder hierarchy, starting with Namespace.Folders, getting each subfolder in turn from its parent Folders collection. See http://www.outlookcode.com/d/getfolder.htm
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Paddy" wrote in message ups.com... Hello, I am asking the folder path from the user as input in my progam via a config file. So the user enters something like "\\Mailbox - User\Inbox\TestMessageFolder". I then take this folder and analyse/filter the messages in "TestMessageFolder" I am stuck trying to access the folder via the obvious API in .NET. I tried 1. GetDefaultFolder - (Obviously) fails because the user entered folder, "TestMessageFolder", may not be default. 2. GetFolderFromID - Very confusing as the first parameter entryIDFolder can be passed as a string i.e. "\\Mailbox\Inbox\TestmessageFolder" but how can I get the second parameter ,entryIDStore. Thanks for any help that you can offer. - K. |
All times are GMT +1. The time now is 03:51 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