One of the most common thing that PDA user do is to sync it with thelaptop so that the meeting, contacts, email and some other stuff arealways up to date. However, I feel the process is very irritating, eventhough what i need to do is just to connect the PDA to the laptop usinga USB cable. My laptop has the bluetooth and I always leave it on allthe time (with the wifi). Hence, I wrote a script to perform the syncvia automatically twice a day:
At the scheduledtime, turn on the PDA's ActiveSync and start to sync via bluetooth.This will happen when my pda is in suspend mode.
Turn off the screen and wait until the sync finish.
Turn off the bluetooth, quite the ActiveSync and suspend the PDA.
I use the MobSyncto backup and sync the extra folders when there is a connection betweenthe PDA and laptop. So, my script have to know when the MobSync hasfinish the process. In order to let my script to be smart, I use asimple script. The last process of the MobSync is to copy a dummy filefrom laptop to PDA. So, the script will keep looking for the dummyfile. If the dummy file still not copied to PDA, it means that the syncstill in process. If it found the file, means that the sync is finish.So, the script can finish the sync process. The script will also removethe dummy file, so that it wont be confused for the next sync process.Below is the code for the bluetooth sync. You can copy and modify, thensave to a file like bluetoothsync.sksc. Then just use the SKSchema toschedule when to run this file.