No, you need to hold a reference to the destrination folder. You can get it
either from walking the folder tree starting from Namespace.Folders, or by
using Namespace.GetFolderFromID()
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Hi,
>
[quoted text clipped - 17 lines]
>
> Any help will be greatly appreciated.
Sergei Rozentsvet - 27 Aug 2003 15:13 GMT
Dmitry,
Bolshoe spasibo za sovet.
I thought about walking through the folders
(Application.GetNamespace("MAPI").Folders.Item("My E-
Mails")) but the problem is that I do not know how deep
to go. Ideally I am looking for a solution where I could
use the FolderPath property of the folder and simply use
it (just change part of the string to accomodate for a
different .PST name) in item.Move() method.
I am not very familiar with the GetFolderFromID() method
and do not see how it can help me (I believe this method
relies on CLSID-like folder IDs).
I will appreciate it very much if you could assist me
further with this problem. It would be great if you could
give me an example of any viable method I could use.
Thank you once again,
Sergei Rozentsvet
>-----Original Message-----
>No, you need to hold a reference to the destrination folder. You can get it
[quoted text clipped - 29 lines]
>
>.
Sue Mosher [MVP] - 27 Aug 2003 16:49 GMT
If you have the folder path, you can use that to walk the hierarchy -- see http://www.slipstick.com/dev/code/getfolder.htm

Signature
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Dmitry,
>
[quoted text clipped - 63 lines]
> >
> >.
Serge Rozentsvet - 29 Aug 2003 15:05 GMT
That's great help Sue, thanks a lot. The website has
exactly what I need.
Thanks again.
>-----Original Message-----
>If you have the folder path, you can use that to walk the hierarchy -- see
http://www.slipstick.com/dev/code/getfolder.htm