Shoutbox

create zip - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: create zip (/showthread.php?tid=84145)

create zip by Suxsem on 06-05-2008 at 11:17 AM

Hi!

with the command "MsgPlus.ExtractFromZIP(/*ZipFile, DestDir, FileNames, Password*/)" I can extract a zip file...but....how can I create a zip file from a folder?


RE: create zip by Mike on 06-05-2008 at 05:05 PM

You will probably have to use zlib.


RE: create zip by CookieRevised on 06-05-2008 at 06:50 PM

...Or any other 3rd party library.


In fact, you don't need any 3rd party library at all since Windows XP and Vista already support ZIP files. So you can make an (un)zipper without any 3rd party stuff.
Microsoft calls it "compressed folders" (which is indeed what a zip file actually is, it is a folder with one or more files and/or subdirectories), so you might wanna search for that in the MSDN library (you'll find examples and very detailed info).

For an unzip example see: CookieRevised's reply to [Suggestion] Skin Updater.
Zipping is very similar and many (Javascript/JScript) example codes can be found on the net.


RE: create zip by roflmao456 on 06-05-2008 at 09:43 PM

quote:
Originally posted by CookieRevised
For an unzip example see: CookieRevised's reply to [Suggestion] Skin Updater.
Zipping is very similar and many (Javascript/JScript) example codes can be found on the net.
quote:
You do not have permission to access this page.

RE: create zip by Eljay on 06-05-2008 at 11:31 PM

Silly Cookie linking to a thread in the beta forum :P

Here is what is in the post anyway: (hope you don't mind, Cookie)

quote:
Originally posted by CookieRevised
You could also use pure scripting to unzip a file.

The disadvantage for this is that it only works on XP and higher (thus also Vista), you can't hide the dialogs and you need to make sure the native zipping is enabled (DLL registered, but that can be done with your script too actually).

Or you could call zlib.dll with the Interop calls. zlib is very likely present on every system, although this is not always true, but that would be rare.

RE: create zip by Suxsem on 06-09-2008 at 08:17 AM

Thank! Now i try...