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
witzker Outlook 2019 Pls. add a Prefix for OUTLOOK 2019 here Using Outlook 1
H Outlook 2019 intermittent search results Using Outlook 0
hstein POP3 latest Outlook Using Outlook 0
V Outlook 2003 and Windows 11 Using Outlook 4
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
A Reminder duplication Outlook and Outlook.com Using Outlook.com accounts in Outlook 5
F Moving Outlook to new PC Using Outlook 0
mll persistently customise columns in outlook advanced search Using Outlook 3
Ken Pascoe Outlook Categories Quick List Using Outlook 0
M All fonts in Outlook emails display with exaggerated character spacing Using Outlook 1
talla Can't open Outlook Item. Using Outlook 0
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
P Importing other e-mail accounts into Outlook Using Outlook 1
J Read Outlook Form fields Outlook VBA and Custom Forms 3

Similar threads

Top