Reading an STG file created from MS 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.
精彩评论