How can we use the MS Sync Framework to synchronize a text file located on a Windows CE 6.0 device with a text file located on a Windows PC when the device and the PC are connected through USB?
We already know how to do this when...
- the two target text files are on the same PC,
- the device and the PC are connected through Ethernet, or
- the device and the PC are connected through Internet.
We have a current hack that uses the Remote APi. It is as follows:
- The user connects the device cradle to the PC using USB.
- The user docks the device in its cradle.
- The user opens the desktop app on the PC.
- The user clicks the sync button in the desktop app.
- The desktop app then uses the Remote API (RAPI2) to copy the text file from the device to the PC.
- The desktop app next uses the MS Sync framework to sync the two files.
- The desktop app finally uses RAPI2 to copy the synced text file back to the device.
We would like to eliminate steps 5 and 7 by doing the sync across the USB cable. Is this possible?
We want to eliminate steps 5 and 7 because, as the target text file becomes large, the copying of the text file between the device and the PC could be time intensive, thus, the user experience would suffer.
We suspect that we might have to create a driver to eliminate steps 5 and 7. Is that true? If not, what other approaches could we take? For instance, could we somehow expose a WCF endpoint across USB?