When a Personal Folder file (.PST) is being removed from Outlook, the file itself is still open by Outlook until Outlook is shut down. This causes Sharing Violation when trying to move, copy or delete the PST file. I need to perform those actions on the PST file for automation reasons, without closing the Outlook application. I've tried removing the PST from within Outlook by right clicking on it and choosing "Disconnect" (or "Close" in Outlook 2000). I've tried it using the Tools->Services menu option and I've tried the DeleteMsgService MAPI function. All of those successfully removed the Personal Folder from the Outlook application, but the PST file remained open until Outlook shuts down.
Any ideas about how to convince Outlook to really close the file?