Re: De-compress a file from UNIX



Marc,

> I have a problem in that I need to de-compress a file that was
> compressed using the UNIX compress command.
> The resulting filename is helloworld.xml.Z.
> I have looked at SharpZipLib, but haven't been able to make it work.

I'm not aware exactly how "Z" files are built, but most probably they are a
variant of the "zip"-family (LZW) of compression algorithms. So it might be
that they are like Zip files, but just with a different set of headers.
Since the "Z" format is used in Unix quite a lot, probably you could find
documentation of the file format somewhere, and even build your own
decompressor.

However, if you know in advance that you have access to WinZip on the host,
the you could easily command WinZip to decompress the file. WinZip has
published a free command-line add-on to the graphical WinZip utility, which
could prove helpful.

Another option is to take look at the new System.IO.Compression namespace in
..NET 2.0.

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@xxxxxxxxxxxxxxxxxxxxxx
http://www.saunalahti.fi/janij/


.



Relevant Pages

  • RE: automatically compressing folders & files
    ... I do not know what the command line is so ... that you can automatically send files/folders to be compressed/zipped by XP, ... easy way to compress files and free up hard drive, ... > to do the same on machines that do not have winzip. ...
    (microsoft.public.scripting.wsh)
  • Re: Nmon scheduling question
    ... Runs "gzip" to compress it. ... # Script to generate the spreadsheet, compress, & email daily logfiles ... # generated by the daily nmon command run by the cron. ...
    (AIX-L)
  • Re: Compressed Files where is button
    ... it refers to WinZip archive/zip ... Run the 2nd command also. ... Microsoft MVP [Windows XP Shell/User] ...
    (microsoft.public.windowsxp.general)
  • Zipping files together
    ... to run the exe file without having to use the gui system. ... at the time of this writing, the command line ... The WinZip Command Line Support Add-On lets you use ...
    (microsoft.public.access.macros)
  • Re: zipfile 2GB problems?
    ... xamdam wrote: ... they used to compress it. ... Winzip has no problem with it. ... if it isn't file size limitations I suspect you need to post some ...
    (comp.lang.python)