Link to home
Start Free TrialLog in
Avatar of alexjayaprakash
alexjayaprakashFlag for Malaysia

asked on

How to duplicate the Outlook folder structure

Let's say current I have PST store my 2006 email.

Personal
|_Alex
|_Mary
|_etc....
Software
|_Linux
|_Microsoft
|_Unix
|_etc......

Currently the PST is reach the size limit.

So I would like to create another PST for 2007 with current folder structure (they is 10 parent folder and 30 subfolder)

I don't want to copy to another PST and delete all the email to preserve the folder structure,

How to duplicate to the empty mail PST with preserve the folder structure??
Avatar of pgm554
pgm554
Flag of United States of America image

export ,then import or you could do a move
Hi, alexjayaprakash.

I can do it with a fairly simple bi of scripting, if that's an option.  I can post the code for doing this if it is.
Avatar of alexjayaprakash

ASKER

Yes, please let me test and confirm.
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No luck..when I try to run I got error "Compile error: Statement Invalid Outside Type Block
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Line 9 generates an errorcode. This can be simply solved by filling in the complete path where tot create the duplicate. Like:
Session.AddStore ("D:\MyDocs\Oultlook\" & strDestFolder & ".pst")

Avatar of lsmanrique
lsmanrique

In case somebody else come around trying to find out how to do it...

1) In File Menu click in Archive
2) Select Archive this folder and all subfolders
3) Select the PST with the folder structure you want to duplicate
4) In "Archive items older than" write a date older than any email you have in that PST (for instance, Mon 1990-01-01)
5) Checkmark on the Include items with "Do not AutoArchive" checked
6) Browse where to save the new .PST
7) Click OK
8) Wait for the archiving process to finish.
9) A new PST called "Archive Folders" will appear in the left panel. It will contain the same folder structure but no data items from the old .PST
10) Change the name as needed (right click, properties, advanced, NAME)

see you