Hi !

I need to launch ActiveSync synchronization from a desktop application
(PC) and to do something when this syncing finished.

I tried using "wcesmgr.exe \syncnow" which works fine but I am not
able to get the end of the sync process.
How could I acomplish that ?

Thanks in advance for your help !
Guim

Re: Knowing when an ActiveSync Synchronization is completed by Fatih

Fatih
Fri May 02 00:26:52 CDT 2008

Hi,

You might use "rapi's" "ActiveSync's" "Active" event or again "rapi's"
"RAPIConnected" event.


On Apr 25, 4:07 pm, gchassign...@gmail.com wrote:
> Hi !
>
> I need to launch ActiveSync synchronization from a desktop application
> (PC) and to do something when this syncing finished.
>
> I tried using "wcesmgr.exe \syncnow" which works fine but I am not
> able to get the end of the sync process.
> How could I acomplish that ?
>
> Thanks in advance for your help !
> Guim


Re: Knowing when an ActiveSync Synchronization is completed programmaticaly on the pc by r_z_aret

r_z_aret
Fri May 02 14:59:09 CDT 2008

On Fri, 25 Apr 2008 06:07:53 -0700 (PDT), gchassigneux@gmail.com
wrote:

>Hi !
>
>I need to launch ActiveSync synchronization from a desktop application
>(PC) and to do something when this syncing finished.

Nobody's provided a clean, direct, answer, so I'll suggest some kludgy
approaches.

For info on starting a PC app when a device is connected, see my 22
Oct 2003 contribution to a thread called "How to check Pocket PC is
Connected or not?" in this newsgroup.

If you don't need to have the device attached when you do "something",
then you can use CeRapiInit (_not_ CeRapiInitEx) in a loop to check
whether RAPI is running, and thus detect when the user has
disconnected the device.

You can pop up a dialog box and ask the user to dismiss that box when
synchronization is done.

You might take a close look at all the RAPI functions (CeRapiInit and
relatives). I didn't see anything relevant, but you have more
motivation than I.

You could try to figure out what executable/dll does the
synchronization, and then watch for a related process to finish


>
>I tried using "wcesmgr.exe \syncnow" which works fine but I am not
>able to get the end of the sync process.
>How could I acomplish that ?
>
>Thanks in advance for your help !
>Guim

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com