Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 15005

The given path's format is not supported

$
0
0
Foreach(Item item in FindItemResults)
{
byte[] ContentBytes;
MimeContent mc;
item.Load(new PropertySet(ItemSchema.MimeContent));
mc = item.MimeContent;
ContentBytes = mc.Content;
item.Load();
FileStream objfileStream = new FileStream(vFilePath + item.Subject + ".eml", FileMode.OpenOrCreate, FileAccess.ReadWrite);
objfileStream.Write(ContentBytes, 0, ContentBytes.Length);
objfileStream.Close();
}

SaveFileDialog objSaveFile = new SaveFileDialog();
objSaveFile.Filter = "All files (*.*)|*.*";
if (objSaveFile.ShowDialog() == DialogResult.OK)
{vFilePath = objSaveFile.FileName;}

I will get the value for vFilePath using save dialogbox.Now the Problem is MailItems

 in the RootFolders like Inbox,SentItems are not getting download in the specified path.

They Show Error:"The given path's format is not supported"...

Whereas the mail items in the rootfolder like inbox,sentitems that have attachments

 are getting download.

Viewing all articles
Browse latest Browse all 15005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>