outlook attachment Extract File ???

Status
Not open for further replies.
?

^^

This is outlook attachment Extract File is code ?

( java scrit )

if(myOutlookItems(i).Attachments.Count > 0)

{

for(var i =0 ; i <= myOutlookItems(i).Attachments.Count; i++)

{

if(!(File.Exists(@"C:\Program Files\" + myOutlookItems.Attachments

(i).FileName)))

{

myOutlookItems.Attachments(i).SaveAsFile(@"C:\Program Files

\Microsoft Office" +

myOutlookItems.Attachments(i).FileName);

}

}

This is defense request!
 
On 4 nov, 09:29, "^^" <kuan1...@gmail.com> wrote:
> This is outlook attachment Extract File is code ?
> ( java scrit )

> if(myOutlookItems(i).Attachments.Count > 0)
> {
>    for(var i =0 ; i <= myOutlookItems(i).Attachments.Count; i++)
>   {
>    if(!(File.Exists(@"C:\Program Files\" + myOutlookItems.Attachments
> (i).FileName)))
>      {
>         myOutlookItems.Attachments(i).SaveAsFile(@"C:\Program Files
> \Microsoft Office" +
>         myOutlookItems.Attachments(i).FileName);
>      }
>   }
> This is defense request!


You should try :

myOutlookItems.Attachments(i).SaveAsFile(@"C:\Program Files\Microsoft

Office\" +

myOutlookItems.Attachments(i).FileName);

instead of :

myOutlookItems.Attachments(i).SaveAsFile(@"C:\Program Files\Microsoft

Office" +

myOutlookItems.Attachments(i).FileName);
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
Owl Export Outlook PDF Attachment as JPG? Outlook VBA and Custom Forms 4
K Outlook Office 365 VBA download attachment Outlook VBA and Custom Forms 2
P Sending email from outlook IMAP to GMAIL where embedded images are added as attachment Using Outlook 1
O VBA Outlook Message Attachment - Array Index Out of Bounds Outlook VBA and Custom Forms 0
H Outlook 2003 find by "has attachment" Using Outlook 1
9 Outlook 2016 How to save an Outlook attachment to a specific folder then delete the email it came from? Using Outlook 1
geofferyh Outlook 2010 How to Copy Outlook Attachment to a Specific Folder? Outlook VBA and Custom Forms 3
J Help Please!!! Outlook 2016 - VBA Macro for replying with attachment in meeting invite Outlook VBA and Custom Forms 9
W Save Outlook attachment in network folder and rename to current date and time Outlook VBA and Custom Forms 18
V Saving attachment from outlook in My Documents Outlook VBA and Custom Forms 14
P Outlook Randomly Not attaching (attachment file) Using Outlook 0
C Outlook Attachment List in Reply Header Using Outlook 3
Randy Redekopp Outlook 2016 attachment content search Outlook VBA and Custom Forms 2
RalphG101 No indication of attachment, when selecting file, send to outlook. Using Outlook 0
K Outlook send emails without attachment to a list Using Outlook 1
O How to send outlook meeting request as attachment Using Outlook 3
D Outlook VBA to open Excel attachment and send recipient's email address to a workbook cell? Using Outlook 4
K VBScript Outlook, add attachment Outlook VBA and Custom Forms 1
R Outlook Custom form check if there an attachment Outlook VBA and Custom Forms 2
S Pre populate subject + body + attachment to already open email in outlook 2007 Using Outlook 2
A When I send as attachment directly from within Powerpoint, Outlook freezes Using Outlook 2
L Outlook 2010 Quick Print Attachment, nothing happend Using Outlook 0
Hudas Import Outlook Emails(Inbox) to MS Access as Attachment Using Outlook 1
E Outlook 2007 Saves .MSG E-Mails with attachment from Public Folders as RTF Using Outlook 0
C How To Open Outlook Attachment in Excel, Modify some Data, then Re-Save It Using Outlook 3
S Outlook 2013 sends plain text with attachment mail as uuencoded with SMTP conn Using Outlook 2
T Unable to attach message as an attachment in outlook Using Outlook 5
G Outlook 2010 .msg Attachment Readability Using Outlook 1
J Outlook is not parsing html email, unreadable and attachment not decoded Using Outlook 1
T Attachment sent from Outlook 2010 not shown by recipients Using Outlook 20
D Outlook File Attachment Based on Contact Name Outlook VBA and Custom Forms 5
N Drag and drop attachment in outlook addin Outlook VBA and Custom Forms 4
3 Outlook 2007 and file attachment conversion Outlook VBA and Custom Forms 3
Y message attachment saved by Outlook.Attachment.SaveFileAs not open Outlook VBA and Custom Forms 7
S save attachment using outlook 2007 Outlook VBA and Custom Forms 1
M Outlook 2016 still feature updating Using Outlook 0
e_a_g_l_e_p_i Question about Outlook 2021 and Gmail Using Outlook 9
J Outlook VBA to send from Non-default Account & Data Files Outlook VBA and Custom Forms 2
P Limited Support for 3rd Party Mail in new Outlook? Using Outlook 1
O Any 3rd party tool that sync (mirror) from Outlook Calendar to Google Calendar? Using Outlook 5
T Outlook is categorizing emails incorrectly Using Outlook 1
R Legacy Outlook on Mac Email Cache Using Outlook 0
A Outlook can't remember outlook.com, Exchange password. Using Outlook 6
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1

Similar threads

Back
Top