View Full Version : Zip Files


afffa
06 June 2008, 06:49 AM
Hey there,

is it possible to write zip files with Maxscript?

didnt' find infos in the help files...

decapitator
06 June 2008, 08:49 AM
Hey there,

is it possible to write zip files with Maxscript?

didnt' find infos in the help files...Check up on the Maz() function that should do the trick

afffa
06 June 2008, 09:05 AM
ah, thanks very much :)

afffa
06 June 2008, 01:19 PM
i checked out Maz(), it works fine with files.
but how do i create folders within the zip files?

or do i need to create the full filestructure first and then Maz() the whole directory?

ZeBoxx2
06 June 2008, 01:37 PM
create structure first, then maz the whole thing. Maz overwrites the zip file specified (instead of adding to it), so there's no other way really.

afffa
06 June 2008, 01:49 PM
ok, thanks.
so i'll need to find another way, cause i need more flexibility.

PiXeL_MoNKeY
06 June 2008, 02:17 PM
Get a zip tool that has command-line creation like 7-zip (http://www.7-zip.org/), or one of the numerous commercial zip tools. Then use the DOSCommand or (HiddenDOSCommand, in 2008+ or with the AVG extension) to execute then need command-line parameters.

-Eric

ZeBoxx2
06 June 2008, 04:55 PM
or use .NET with, for example, the DotNetZip assembly; might be a bit more flexible and trusting still than launching an external executable (especially with today's virus scanners, firewalls, etc.)

CGTalk Moderation
06 June 2008, 04:55 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.


1