Create a .pst file

  • Thread starter Thread starter Steve Lang
  • Start date Start date
S

Steve Lang

Hi All,

I want to duplicate the File | Export Wizard in code. I want to automate
backing up my existing .pst files to a network device. This is what I
understand I need to do:

1. Create a new .pst file
2. Loop through all existing pst files and their sub folders and copy them
to the new .pst file.

I believe I can do step 2, but I can't seem to figure out how to create a
..pst file.

Any help out there?

TIA and have a great day!

--
Stephen Lang
Legislative Counsel Bureau
Carson City, NV
GMT+8
slang at lcb <dot> state <dot> nv <dot> us
 
Hi Sue,

About an hour after posting, I discovered it. I am very familiar with Word's
and Excel's Object Models... that being said, Outlook is one different
animal!

A follow up question: I have a number of rules that I have created through
the Rules Wizard. How would I go about writing a script that would invoke
the "Run Now" for them all through code? It'd be much easier to mash a
single button to run all the different rules, than to do the navigating and
checkbox selecting required now.

Thanks Sue, and have a great day!

Steve Lang

Have you looked at the Namespace.AddStore method?
 
Not possible.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Dang. That sucks. Oh well, though I might get a single step up on spam.

Thanks for your help!

Steve

Not possible.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
I am developing something similar to your project here and I am able
to create a new PST file, along with copying all folders in my
personal folder. The problem is that I am unable to create a backup
copy of the color rules (where you can set up some emails to be
certain color) and wizard rules. Are they stored in the PST file? or
are they stored in other files? If they are stored in a different
file, will outlook automatically load them from their location during
restoration time? I've tried to rename my current outlook PST and use
the new PST file as my new PST, and my rules are not seem to be there.
Can you help me with this matter? Thank you.
 
I am developing something similar to your project here and I am able
to create a new PST file, along with copying all folders in my
personal folder. The problem is that I am unable to create a backup
copy of the color rules (where you can set up some emails to be
certain color) and wizard rules. Are they stored in the PST file? or
are they stored in other files? If they are stored in a different
file, will outlook automatically load them from their location during
restoration time? I've tried to rename my current outlook PST and use
the new PST file as my new PST, and my rules are not seem to be there.
Can you help me with this matter? Thank you.
 
They are hidden items and can't be copied. Even copying the hidden items with CDO won't work, I'm told.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top