lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi
 
Thanks for the reply, I was preferring a zip file, but could use another format if it was easy to achieve and not too obscure.  I am wanting to zip up a bunch of text files into 1 zip file.
 
I am aware I could use pkzip.exe and call it via os.execute(), but that seemed a bit of a clunky solution. Also I am running this from Lua embedded within a Windows App and os.execute() opens a Dos command window which looks a bit ugly. I was hoping to avoid that solution 
 
Geoff
 

Date: Thu, 21 May 2015 15:24:22 -0700
From: brighamtoskin@gmail.com
To: lua-l@lists.lua.org
Subject: Re: Zip Library

To clarify, do you need it to support specifically the .ZIP format, or will any reasonable compression library work? Are you compressing a single file or a bunch of things?

On Thu, May 21, 2015 at 2:52 PM, Dmitry V. Zaitsev <hhrhhr@gmail.com> wrote:
local fname = " filename.txt"
local zip = "your_favorite_zip_packer.exe "
local opt = "-opt1 -opt2"
os.execute(zip .. opt .. fname)

your_favorite_zip_packer — infozip, 7zip, zip-NT or any other zip-packer. 

2015-05-21 23:43 GMT+03:00 Geoff Smith <spammealot1@live.co.uk>:
Hello
 
I need a quick and simple Lua Windows library to zip up some text files using Lua. I thought this would be easy to find as its such a common requirement.  The relevant wiki pages didn't seem to give me a library that satisfied the following
 
1)  Minimal dependencies, ideally just one or two DLL's that do the hard work.
2) Comes with the DLL binary(ies), and doesn't require me to faff around building the DLL myself.
3) Is simple to use and comes with some documentation on how to use it.
 
Have I missed a zipping library, that meets the above fairly basic criteria ? Any possible suggestions that I might have missed would be greatly appreciated.
 
Thanks Geoff




--
Brigham Toskin