outlook attachment Extract File ???

  • Thread starter Thread starter ^^
  • Start date Start date
?

^^

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!
 
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);
 
Back
Top