Solved

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

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
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 …
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: …

919 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

22 Experts available now in Live!

Get 1:1 Help Now