Dim objOL As Outlook.Application Dim objNS As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim strDisplayName As String Dim dmppstpath As String Dim ptFileName As String ptFileName = "Archive.Pst" 'dmppstpath = pstDirectory + "" + pstFileName strDisplayName = "PersonalFolder" objOL = CreateObject("Outlook.Application") objNS = objOL.GetNamespace("MAPI") objNS.AddStore(ptFileName) Dim Inbox As String = "Inbox" objFolder = objNS.Folders.GetLast objFolder.Name = strDisplayName 'objNS.Session.RemoveStore(objFolder)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)