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
Solved

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

Posted on 2006-06-20
4
339 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Outlook Free & Paid Tools
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

808 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