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!
 
I

Igal BITAN

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
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 How to setup outlook after importing old account information - Entering email account info creates with "(1)" after the account! Using Outlook 1
P Prevent Outlook 2016 from using DASL filter Using Outlook 4
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 0
G VBA to save selected Outlook msg with new name in selected network Windows folder Outlook VBA and Custom Forms 1
X Outlook automation pull from PDF Using Outlook 5
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 3
M Gmail address associated with Outlook on new phone Using Outlook 9
D Cannot populate certain UserProperties in Outlook from Excel Outlook VBA and Custom Forms 2
F Excel VBA to move mails for outlook 365 on secondary mail account Outlook VBA and Custom Forms 1
G Outlook 2016: Want IMAP Data Files on My D: Drive and Not C: Drive Using Outlook 1
V Validating Outlook form with "OR" and "AND" Outlook VBA and Custom Forms 1
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1
J Connect outlook to office365 exchange _without_ signing in office apps Using Outlook 4
D Outlook launch email showing new unread email in reading pane Using Outlook 11
M Convertor for Outlook Express Mail Store (.dbx) to Outlook Mail Store (.pst) Using Outlook 0
K Outlook adds space to rows in HTML email signatures viewed on mobile Using Outlook 1

Similar threads

Top