How to extract files from .CAB file using C#.Net?

Ganesh picture Ganesh · Jul 30, 2010 · Viewed 8.3k times · Source

I have a CAB file generated from CABARC.EXE. I need to extract the file using ASP.Net C#.Net.

How to do it in C#.net itself? I don't want to use the same CABARC.EXE for extraction. Because we don't use this tool in production environment.

Please give your valuable suggestions/code to achieve this task.

Thanks in advance

Ganesh.

Answer

tomfanning picture tomfanning · Aug 2, 2010

I googled this for you.

http://www.codeproject.com/KB/files/CABCompressExtract.aspx

Looks like it does everything you want.