4

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.

skaffman
  • 398,947
  • 96
  • 818
  • 769
Ganesh
  • 126
  • 2
  • 12

3 Answers3

2

I googled this for you.

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

Looks like it does everything you want.

tomfanning
  • 9,552
  • 4
  • 50
  • 78
1

If you want a native C# solution I suggest you start with the file specification for CAB files here:

http://msdn.microsoft.com/en-us/library/cc483132(EXCHG.80).aspx

tomfanning
  • 9,552
  • 4
  • 50
  • 78
  • Hi tomfanning, Thanks for you response. Actually I'm a web guy and difficult to understand the core file specification. I couldn't write much new code for cab extraction. If possible give me the available solution. Thanks Ganesh. – Ganesh Jul 30 '10 at 09:24
  • So you need to find a library which does this, or hire someone to write one for you. – tomfanning Aug 02 '10 at 08:12
  • I found one for you. First result in Google. – tomfanning Aug 02 '10 at 08:16
-1

Have a look at https://learn.microsoft.com/en-us/previous-versions//bb267310(v=vs.85)#microsoft-cabinet-file-format

There you have a file format description for the CAB file.

Scoregraphic
  • 7,110
  • 4
  • 42
  • 64