Solved

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

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

Accepted Solution

by:
zephyr_hex 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Create high volume marketing opportunities using email signatures with these top 10 DOs and DON'Ts of email signature marketing.
Use email signature images to promote corporate certifications and industry awards.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now