Newly created PST is locked after calling RemoveStore

  • Thread starter Thread starter Iwi
  • Start date Start date
I

Iwi

Hi,

I create a new PST file using Namespace.AddStore for archive purposes.
After I I transfered some email to the new PST, I call
Namespace.RemoveStore to unload PST from outlook GUI. The problem is
that the new PST file is still locked even though I've called
RemoveStore. Is there anyway to unlock this newly created PST file
while outlook is running? Is there anyway to "force" outlook to
dismount the unused PST file? Thank you.
 
AFAIK, no. You see the same problem if you close a PST file during an Outlook session -- it's still held open by Outlook until Outlook shuts down.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Thanks for your reply Sue. Since apparently there's no way I can
unlock this file, I am looking for another means which is to export
PST file programmatically. Is there any API call that I can use to
export PST file in outlook programmatically? cause I don't see any
import/ export function information in outlook object. Thank you.
 
Exporting to a PST file through the UI does the same thing: The file remains locked until Outlook shuts down. There is no export/import method in the object model.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top