西部在线禁发广告,违者封会员帐号. |
[转帖]蓝牙自动同步数据 | |
发起人:konan 回复数:0 浏览数:7597 最后更新:2008/12/21 3:50:31 by konan |
选择查看 | 搜索更多相关主题 帖子排序: |
konan 发表于 2008/12/21 3:50:33
|
[转帖]蓝牙自动同步数据 这是今天在google时看到一个国外朋友的作品,转过来分享一下。直接用google的翻译修改一下,省事,有不妥的地方见谅了。p.s.明白再修改说明吧,今天有点晚了 ------------------------ <div id="result_box" dir="ltr">SKSchema脚本:同步掌上电脑与笔记本电脑通过蓝牙 PDA用户最常见的工作,是同步的笔记本电脑上的数据,如会议,联系人,电子邮件和其他一些东西,使它们总是最新的。但是,我觉得这个过程非常刺激,即使我需要做的就是连接的PDA的笔记本电脑使用USB电缆。我的笔记本电脑有蓝牙,我总是让所有的时间(与无线)。因此,我写脚本来执行自动同步通过每天两次: 1 。在预定的时间,打开PDA的ActiveSync的,并开始通过蓝牙同步。这将发生在我的PDA是在暂停模式。 2 。关闭屏幕,等到同步完成。 3 。关闭蓝牙,完全ActiveSync和暂停的PDA 。 我用的是MobSync备份和同步文件夹的额外当出现之间的连接PDA和笔记本电脑。所以,我的脚本必须知道什么时候MobSync已完成这一进程。为了让我的剧本是聪明的,我用一个简单的脚本。最后进程的MobSync是复制一个虚拟文件从笔记本电脑到PDA上。因此,该脚本将继续寻找假档案。如果假文件还没有复制到掌上电脑,这意味着仍然在同步的过程。如果发现该文件,也就是说,是同步完成。因此,脚本可以完成同步的过程。该脚本也将删除该虚拟文件中,这样,它惯于混淆的下一个同步的过程。以下是代码蓝牙同步。您可以复制和修改,然后保存到一个文件一样bluetoothsync.sksc。然后,只需使用SKSchema安排时,运行此文件。</div>---------------------------------- [转自:http://kckoay.blogspot.com/2008/08/skschema-script-sync-pda-with-laptop.html]Saturday, August 23, 2008SKSchema Script: Sync PDA with laptop via bluetooth<div class="post-body entry-content">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:
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. #r(#yesno) #p(Sync pc? ) #rmt(5000) |