HighTechTalks DotNet Forums  

Outlook Send & Recieve in VBScript

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Outlook Send & Recieve in VBScript in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Insp. Gadget
 
Posts: n/a

Default Outlook Send & Recieve in VBScript - 02-14-2005 , 04:45 PM






Hi All,


I have developed the following code to synchronize the users Email folders


' Connect to outlook

Set OLApp =
WScript.CreateObject("Outlook.Application", "SyncObject_")



' Connect to Mapi Client

Set OLMAPI = OLApp.Getnamespace("mapi")



' Connect to OL Sync Objects

Set OLSyncs = OLMAPI.SyncObjects



' Connect to default Sync Objects

Set OLSync=OLSyncs.Item("All Accounts")



' Synchronize EMails

OLSync.start


This starts the send and receive of outlook fine, but the script finishes
before the send and receive has completed.



The SyncObject has some events called ‘syncend’, ‘progress’ and ‘onerror’
but since these are events and not properties or methods of the SyncObject, I
am finding it hard to check the progress of the synchronization.



The examples I can find on MSDN and other site are for VB and not VBScript.



Is there a way of doing this in VBScript.



Any ideas?


--
Thanks ;-)

Insp. Gadget

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.