Results 1 to 4 of 4

Thread: Selecting a directory and looping through all outlook PST stored in the directory

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2012
    Posts
    90

    Selecting a directory and looping through all outlook PST stored in the directory

    Hi

    I need to pick a folder on my computer which is holding many PST files. Once the directory is selected then I would like to open each PST and carry out some processing. I already have the code working for the processing but I don't know how to a) pick the directory to check (can change each week) and b) how to loop through each PST and open it.

    Many thanks for anything you can offer.

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: Selecting a directory and looping through all outlook PST stored in the directory

    Solution:
    Look up the SHBrowseForFolder-API for picking a directory
    Look up the Dir-command to loop through all PST's
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2012
    Posts
    90

    Re: Selecting a directory and looping through all outlook PST stored in the directory

    Thanks for the tip. I'm not at all familar with coding for Outlook access. Any snippit of code available or do you know where I can find examples? I have trawled through a lot of Google results but nothing comes that fits the bill.

  4. #4
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,418

    Re: Selecting a directory and looping through all outlook PST stored in the directory

    SHBrowseForFolder: http://www.freevbcode.com/ShowCode.asp?ID=852
    Dir-Function: http://www.developerfusion.com/threa.../dir-function/

    If you need any help, just scream...
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width