compress file

Posted on 2010-08-27
Last Modified: 2013-12-27

How can I compress any file using c# for windows mobile devices/windows ce? Like text file on device.

Thank you
Question by:mkk39
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 33

Assisted Solution

pgnatyuk earned 150 total points
ID: 33540732
SevenZipSharp is an open source project on CodePlex. Take a look:


Expert Comment

ID: 33540802

there are some open source zip libraries but their compression rate is to low. I can advise you to use pocketrar. here is the place to download it. it is freeware:

the rar file will reside somewhere under \\program files\pocket rar\rar.exe
here is an example on how to extract an archive. more information you can find on winrar help file for command line parameters:

string PKatalog = "Storage Card\\AronDB\\MyFile.txt";
string PSource = "\"\\Storage Card\\MyArchive.RAR\"";
string PDestination = "\"\\Storage Card\\\"";
string PRarPlace = "\\Program Files\\Pocket RAR\\rar.exe";
string PCommand = "e -idp -o+";

System.Diagnostics.ProcessStartInfo pi = new System.Diagnostics.ProcessStartInfo(
                PCommand + " " + PSource + " " + PDestination
            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo = pi;


Author Comment

ID: 33541293
With SevenZipSharp  I am getting this error when try to run sample:

Could not load type 'SevenZip.SevenZipExtractor' from assembly 'SevenZipSharp, Version=0.64.3890.29348, Culture=neutral, PublicKeyToken=20DE82C62B055C88'.

Can u please help me to fix it?
LVL 33

Expert Comment

ID: 33541418
There is "Discussions" page in that project with all answers. For example:
Usage example with compression switches

Or simply delete it if it does not want to work for you - it's an open source project, choose another one.


Accepted Solution

sindhuxyz earned 350 total points
ID: 33548633
zlibce is easy to use.

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator ( This article presumes a wor…
I recently asked a question ( about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question