Unfortunately an Outlook attachment is not a discrete file from the OS perspective. Instead it is contained as part of Outlook's overall PST file.
Copying a separate file would be a trivial task, but not having a discretely separate file makes it difficult to do a Save As... or Copy of the attachment file to another location.
You might want to look deeper into doing Automation of Outlook in your VFP application to see if this might be done using it.
Within Outlook you can Open the Attachment and then, from there, you can Save the Attachment to a non-PST location.
I am not clear on what you mean by "If I copied a file from another folder, could I paste that to a different folder?"
Which a file from another folder?
The Attachment?
If the Attachment is already saved in another non-PST folder then you can merely use VFP's COPY FILE command to copy it elsewhere.
If I open an Outlook Email with attachments, I can select an attachment, press <ctrl+c>, go a folder and paste the attachment <ctrl+v> to the folder. It is not necessary to open the file.
My goal, is to open the email, select the attachment, and press <ctrl+c>. I then want to go to my vFox application and click a button that will paste the file to a folder without opening the folder.
I am also open to other methods besides copy / paste. Any input is appreciated.
In your "open email, ctrl-c, go to folder and paste" scenario you are using two applications. You're using Outlook to get a file reference onto the clipoard and Windows Explorer to do the paste operation.
Both of those applications can be automated in code. What have you tried so far? What hasn't worked?
The answer to my issues came with the use of the Vfox Web Browser Class. Internet Explorer and Windows Explorer as it turns out operate the same. If you use the full path as the address it is exactly what I wanted.
The only issue I have yet to overcome is how to control the "View" (Thumbnail, Tile, Icon, List Detail) in XP. The system does not retain the setting and always is displayed in the Icon view when the Detail view is preferred.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.