Newly created PST is locked after calling RemoveStore

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.
 
S

Sue Mosher [MVP]

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
 
I

Iwi

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.
 
S

Sue Mosher [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top