This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
wilcomega's profile picture

archive program v1.1

Started by wilcomega, 05 January 2013 - 03:39 AM
wilcomega #1
Posted 05 January 2013 - 04:39 AM
hello everyone,

today i made a program that allows you to compress/pack as many files and folders as you want into one file.
it is like winrar or winzip for windows but for computercraft
and i know someone else made this too but i wanted too make my own.
my program has a archive file format that is very easy to read by programs. i used textutils.serialize and unserialize.
later i might incluse a self extracting archive. very likely

you can use it like this:

archive pack <folder> <file>
archive unpack <file> <folder>

installation:

pastebin get dp5ri2TJ archive
or use this link to copy the code if you dont have http enabled:
http://pastebin.com/dp5ri2TJ

changelog:
Spoilerv1.1:
-added option to make an self-extracting archive with serveral options. also called an installer
-fixed a few little bugs

v1.0:
-initial release

please give me some feedback and suggestions :)/>
wilcomega #2
Posted 05 January 2013 - 06:44 AM
update!!! :D/>

changlelog v1.1: short version
-added self-extracting archive maker
imthe666st #3
Posted 15 June 2013 - 09:56 PM
Very nice program, I've searched for days for a program like this :)/>