We archive old email in PST files to get them off exchange. if a user has
several mailbox's open it's no problem to get access to their folders via
GetSharedDefaultFolder, however if a user has an outlook data file open (PST)
i can't see a way to get access to it via GetSharedDefaultFolder, i can't
resolve the name. should this be possible?
Thanks,
Steve
No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only .pst files on local drives, not network access.

Signature
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
> We archive old email in PST files to get them off exchange. if a user has
> several mailbox's open it's no problem to get access to their folders via
[quoted text clipped - 3 lines]
> Thanks,
> Steve
Paul Wu - 19 May 2008 07:03 GMT
Could you show me how to use Namespace.AddStore to open .pst file?

Signature
Developer
> No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only ..pst files on local drives, not network access.
>
[quoted text clipped - 5 lines]
> > Thanks,
> > Steve
Sue Mosher [MVP-Outlook] - 19 May 2008 12:59 GMT
See http://www.outlookcode.com/codedetail.aspx?id=84 for a code sample. Note that AddStore would be used to open a .pst file that the user is not already using. For one already in use in the current profile, you'd access it as you would any other store or non-default folders -- through the Namespace.Folders collection.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> Could you show me how to use Namespace.AddStore to open .pst file?
>
>> No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only ..pst files on local drives, not network access.
>>
>> > We archive old email in PST files to get them off exchange. if a user has
[quoted text clipped - 4 lines]
>> > Thanks,
>> > Steve