Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Local lnCount, loMapiSession, loInbox, loMessage, loAttachment
MkDir D:\attachments
lnCount = 0
loMapiSession = CreateObject("MAPI.Session")
loMapiSession.Logon("Outlook") && modify this for your needs
loInbox = loMapiSession.GetDefaultFolder(1) && this too, if you have multiple inbox folders
For Each loMessage IN loInbox.Messages
If loMessage.Attachments.Count>0
For Each loAttachment IN loMessage.Attachments
? loAttachment.Name
If InList(loAttachment.Type,1,2)
loAttachment.WriteToFile("D:\attachments\"+loAttachment.Name)
lnCount = lnCount + 1
EndIf
EndFor
EndIf
* Just a demo, don't save all attachments to disk, that could take a while...
If lnCount>5
Exit
EndIf
EndFor
So even though Olaf's code isn't controlling OE after all, the answer is still good.How Can I Save Attachment w/o openning Outlook Express in VFP9?