Solved

Outlook does not close Personal Folder files

Posted on 2000-05-14
3
381 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:nirg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:VinceA
ID: 2808456
From everything I've seen, you can't close the PST without closing Outlook (and the MAPI spooler terminating - if it's in use)
0
 
LVL 16

Expert Comment

by:Neo_mvps
ID: 2809075
This is the best thing that comes into my head and taking into account that you are automating Outlook 2K and want the PST available to you at the next startup of Outlook/MAPI.

1] Using VB, VBScript, C++, or Delphi - use Outlook's Application.Quit method from automation to force outlook closed.

2] Release object above to clean out any last pointers in memory.

3] Work with the PST file in question

4] Create a new automation object refering to the Outlook.Application.

5] Open/Create an Explorer window for one of the default folders and display it.

6] Release object created in #4

The only thing that might hold you up is any other MAPI enable applications keeping the MAPI Spooler and running.  In this case you are right back to what VinceA stated.  Trying to figure out a way to get the MAPI Subsystem to shutdown gracefully.
0
 
LVL 1

Accepted Solution

by:
Dmaio earned 500 total points
ID: 2882522
The same thing happened to me.  I chose to edit the registry.  If you don't feel comfortable with that there is a knowledge base article on the Microsoft Office Update site with steps on how to edit the .pst file from your registry.  The article was written for Outlook 98 but also applies to 2000.  The title is "Unable to Close Personal Folders File on the Folder List"  The Article ID is Q241880.  Basically the steps are as follows:  Quit Outlook--On the START menu click RUN, type "regedit, and click OK--Click to select the following registry key:  HKEY_CURRENT_USER/Software/Microsoft/Windows Messaging System/Profiles/your name or Microsoft Outlook Internet Settings

Then search through to find the personal folders file--Delete it and close the Registry Editor.  THis does not erase the .pst file.  It closes and removes the file from your Outlook folder list.  

Good Luck!
0

Featured Post

SendBlaster Pro 4 - Bulk Email Sending Software

SendBlaster 4 Pro - Best Bulk Emailing Sending Software
Automatic Subscribe / Unsubscribe Processing
Great for Newsletters & Mass Mailings
Optional HTML & Text Composition
Integration with Google Features
Built in Spam Score Checking
Free Professional Templates - Feature Packed!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question