WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: alruma on July 24, 2014, 05:31:53 AM

Title: Unzip a gz-file
Post by: alruma on July 24, 2014, 05:31:53 AM
Hello,
is it possible, to unzip a gz-file from Linux?
Best regards
Ruedi
Title: Re: Unzip a gz-file
Post by: Deana on July 24, 2014, 08:07:01 AM
Unfortunately the Zipper Extender included with WinBatch does not support gzip files.

So you can either track down a 3rd party library to DllCall.

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Samples~from~Users+ZLIB~Compression~UDFs.txt
zlib1.dll can be located here:  http://www.gzip.org/zlib/

*OR*

Run a command line tool from your WinBatch script: http://www.gzip.org/
Title: Re: Unzip a gz-file
Post by: td on July 24, 2014, 08:58:58 AM
The 7-zip compression utility is also a good choice and can be driven from a WinBatch script.  It has the advantage of supporting almost all commonly used compression formats including tarball acrhives.