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.
Thread starter Similar threads Forum Replies Date
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
F Difficulty in sending mails with attachment in outlook 2010 Using Outlook 1
R Does not prompt for saving or opening attachments when downloading attachment in Outlook 2007. Using Outlook 3
B Outlook - Printing - RTF Email Attachment Icon and Name Problems. Using Outlook 2
C How to open .lnk attachment which is been blocked by outlook Using Outlook 3
M problem when i'm sending email with attachment in outlook 2007...sometimes the other user receive th Exchange Server Administration 2
M problem when i'm sending email with attachment in outlook 2007...sometimes the other user receive th Exchange Server Administration 1
J Outlook not showing attachment, OWA does Using Outlook 6
G Outlook express 6.0 missing the attachment form the mail sent by outlook 2007 Using Outlook 4
D Outlook 2010 Client crashes on new message, reply, forward, send as attachment Using Outlook 3
B Outlook 2010 attachment problem Using Outlook 1
F Outlook Attachment - warning to send specific type of file Using Outlook 2
G Outlook 2010 - Attachment missing - OWA 2010 Attachment available Using Outlook 3
M unable to open PDF or (http, www or utube) link attachment to outlook messages because of ' RESTRICT Using Outlook 1
D Outlook 2010 crashes when I select new message, reply, forward or send as attachment Using Outlook 3
M Cannot delete an e-mail with a large attachment from the OUTLOOK 2007 outbox. Using Outlook 1
J "Clip" icon appear in Microsoft Outlook 2010 / Exchange 2007 OWA Message, but no attachment inside Using Outlook 4
T "The attachment exceeds the allowable size limit" in Exchange/Outlook 2010 Exchange Server Administration 4
A Outlook 2007 - Adding an attachment, browsing is slow Using Outlook 1
O Copying Outlook Categories to the attachment (MS word) body in bulk. Is this possible? Using Outlook 7
H Can't save Outlook attachment to Skydrive Using Outlook 2
J Outlook gets an error message when send an attachment Using Outlook 2
M Outlook 2007 & Attachment Previewers in a Terminal Services Environment Using Outlook 2
P Outlook 2010 with IMAP: Location of Sent items with attachment Using Outlook 3
T Re: Outlook 2007 error with MS10-045 KB980376 - 'The attachment size exceeds the allowable limit' Using Outlook 0
Similar threads


















































Top