开发者

Reading an STG file created from MS ActiveSync

开发者 https://www.devze.com 2023-03-11 02:13 出处:网络
How can I parse an STG (Microsoft ActiveSync Mobile Device Backup) file (cre开发者_Go百科ated by ActiveSync)?

How can I parse an STG (Microsoft ActiveSync Mobile Device Backup) file (cre开发者_Go百科ated by ActiveSync)?

I have an old .stg file that was created from backing up an old Windows Mobile device, and I would like to write a program to read it using C#. I have tried a few things but can't get anything but garbage when I read through it. From what I can find online it is stored in Unicode format but that's about it, any posts I find talking about it are ancient and all the links are dead.


You can open ActiveSync .stg files in an archiver tool such as 7-Zip or PeaZip. If the program does not recognize the file as an archive, you may need to rename the file to have an archive extension (e.g., .7z, .gz, .tar).


With PeaZip is also possible to try to open any file extension from "Open as archive" menu entry (also available in system's context menu), without changing the file's extension.

With many format being basically variations of Deflate-compressed containers, it is worth trying.

Anyway, some formats may introduce proprietary fields (e.g. extra checksums, comments, digital signing, etc) which are out of the scope for a general-purpose archiver as PeaZip or 7-Zip. So, while it is harmless to try to read container files as archives, it is not adviceable to try to edit them as such.

0

精彩评论

暂无评论...
验证码 换一张
取 消