outlook attachment Extract File ???

?

^^

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

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top