Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook 2003 attachments
Message
 
À
08/10/2004 01:19:06
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00949797
Message ID:
00949807
Vues:
17
Hi Goran,
lcPath="c:\temp\" && Output folder

objSession = CreateObject("MAPI.Session")
objSession.Logon("Your MAPI profil")

loFolder=loSession.InfoStores.Item("Your root Folder (Inbox, etc.)").RootFolder

loMessage = loFolder.Messages.GetFirst()

FOR lii=1 TO loMessage.Attachments.Count
    loAtt=loMessage.Attachments.Item(lii)
    loAtt.WriteToFile(lcPath+loAtt.Name)
NEXT
objSession.Logoff()
MartinJ

>Hi, all
>
>I have lots of email messages in one outlook folder. Every message has 2 attachments (2 .txt files). I need to save all attachments in some folder from VIsualFoxPro (7,8), or is it maybe better solution to use some export from outlook?
>
>TIA
>Goran
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform