Access to Outlook data files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
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.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top