Notices

Tips and Tricks Share tips that can save others time and frustration here !

Reply
 
LinkBack Thread Tools
Old 10-20-05, 12:19 PM   #1 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,553
Thanked 1 Time in 1 Post
Extract contacts names and numbers from ActiveSync and HTC Xbackup backup files

Over at a non-English PDA board, I was asked to help with a pretty common problem: extracting WindowsCE databases from ActiveSync STG files. Unfortunately, the only tool to be able to extract stuff from STG files, STGViewer, is unable to do this – it can only extract files, but not databases.

Unfortunately, ActiveSync is pretty useless when it comes to restoring backup files to other device types (even after a ROM upgrade), and, unlike with FSC Backup, it can't be hacked either (see this thread on making FSC Backup cross-restore backup files) to do so. (Not to say Sprite Backup, the by far the best Pocket PC backup apps, also supports cross-restoration).

This is pretty annoying with the Windows CE PIM databases, which are 100% compatible and, therefore, could be freely restorable on Pocket PC's running the same Windows Mobile version.

This is why I've set out to scrutinize the more closely the STG format and succeeded in finding the contacts database and writing a tool that does this automatically.

The utility, finally, has turned out to be not only compatible with STG, but also with the HTC Xbackup Contacts format. On the other hand, it won't restore FSC Backup (it stores the name/number pairs in the opposite direction) and iPAQ/Sprite (the number/name pairs are are separated by several bytes) contacts, however.

Getting it:

It's, as usual with my apps, free. Download the Java class from here. As usual, I also make the source code freely available, get it from here.

Usage:

If you already have a Java Virtual Machine on your desktop PC (if you don't have one, get it from here. Note that, if you want to reduce bandwidth/disk usage – older JVM's are smaller – the app will work even with older JDK versions – even with JDK 1.1), just issue the

java STGContactNumberAndNameExtract inputfile outputfile.csv

command (using any inputfile and outputfile name; the latter should have the csv extension).

After doing this, go to Outlook and in the Contacts view, go to File/Import and Export; choose Import from another program or file, click Next, choose Comma Separated Values (Windows) and click Next again. After this, it'll be pretty easy to go on.

It's highly unlikely I'll rewrite the tool into C# today: I'm really busy and I'm already late from swimming. Tomorrow I'll have tons of meetings + swimming + sauna so won't really have time either.

Other stuff:

You may also want to check out this thread on my Xbackup file extractor tool – you may find it useful if you have a HTC Phone Edition device.

Also, here're my posts on Yahoo -> Outlook/PDA export. Note that it's a bit outdated: when I wrote it, Yahoo had no explicit Outlook-specific export capabilities. The current Outlook export file is 100% compatible with Outlook on the desktop.
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
Sponsor Ads
Reply

Tags
activesync, backup, contacts, extract, files, htc, names, numbers, xbackup

Sponsor Ads

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:22 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC