Hi. Is there a way to get the filename of an Item via vb6? I have the item as ... say an Outlook.ContactItem for example, and i want to read out the (.eml) filename, but i cant find a way for doing this. Is there a way to get the blah.EML-Filename? Another question: Is there a way for searching quick throu 10000 items in a folder with vb6? I dont want to for each item in folder.items if item.entryid = searchingForThisEntryID then exit for next , because i think it is too slow... Is there a better way for doing this? Thanks, regards Fabian Werner
Are you talking about Outlook or Outlook Express? Outlook keeps its items either in an Exchange mailbox or a PST file. In either case the items are not in the file system unless you save them as ..MSG files, and then they'd still be in the usual mail store unless you deleted them. To get an Outlook item if you have the EntryID already you would use NameSpace.GetItemFromID(strEntryID). -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "castle8000" wrote in message news:2E8EA76B-DC66-4C88-967F-94E1A9729CC0@microsoft.com... > Hi. > > Is there a way to get the filename of an Item via vb6? > > I have the item as ... say an Outlook.ContactItem for example, and i want > to > read out the (.eml) filename, but i cant find a way for doing this. > > Is there a way to get the blah.EML-Filename? > > Another question: Is there a way for searching quick throu 10000 items in > a > folder with vb6? I dont want to > > for each item in folder.items > if item.entryid = searchingForThisEntryID then exit for > next > > , because i think it is too slow... > > Is there a better way for doing this? > > Thanks, regards > > Fabian Werner