Solved

How to programatically remove certain pst files from an outlook profile programatically

Posted on 2006-06-20
4
342 Views
Last Modified: 2010-04-08
I have a need to remove certain PST files from an Outlook profile programatically.  These PSt files exist on a shared network drive which is common throughout the environment.  I need a way to determine which files are on the network drive and remove only those entries from the profile.
0
Comment
Question by:DR12345
[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
4 Comments
 
LVL 43

Accepted Solution

by:
zephyr_hex (Megan) earned 250 total points
ID: 16944588
i am not sure i understand.
you want a way to find and delete .pst files?  or are you wanting to delete a profile in Outlook?  or are you wanting to only delete certain information in a .pst file?

if you are just trying to find and delete .pst files that meet certain criteria (such as age of the file, or name of the file), you can do this with a simple batch script.
0
 
LVL 76

Assisted Solution

by:David Lee
David Lee earned 250 total points
ID: 16949965
Greetings, DR12345.

I'm not sure this is possible.  Each message store, a PST file is a message store, is represented by a MAPI.InfoStore object.  The problem is that there is no file path property for the object.  I've checked the extended, unnamed properties and still cannot find a path recorded anywhere.  Each info store is saved as a registry entry, yet there's no path information there either.  Clearly the path has to be stored somewhere for Outlook to be able to find and open the file.  But so far I'm drawing a blank on where that is.

Cheers!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
Changing a few Outlook Options can help keep you organized!
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

623 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