[Tutor] Zip Command

delegbede at dudupay.com delegbede at dudupay.com
Thu Oct 14 10:35:51 CEST 2010


I have the Winzip so I can actually view zip folders.
What I want is for my backups to be wrapped in such folder.
Thanks Walter

Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: Walter Prins <wprins at gmail.com>
Date: Thu, 14 Oct 2010 09:29:30 
To: <delegbede at dudupay.com>
Cc: tutor<tutor at python.org>
Subject: Re: [Tutor] Zip Command

On 14 October 2010 07:12, <delegbede at dudupay.com> wrote:

> Does window os have a zip command for python like linux and unix.
> If yes, please what is it.
> If no, please what does it use to create a zip folder.
> I am working on an example in byte of python but the zip command is from
> linux but I use windows.
> Thank you.
>

Windows does not have a command line wrapper for it's zipped folders
functionality (which as you probably know should more properly be called zip
files as that's what they are, notwithstanding the fact that Windows
Explorer makes them look like folders in the UI.)  Several third party
command line versions exist however, including proprietary ones like Winzip
and open source ones. (Google yielded for example this:
http://www.pcreview.co.uk/forums/thread-103518.php )

However, you should perhaps have a look at Python's "zipfile" module which
should be able to create zip files as well.  See e.g.
http://docs.python.org/release/2.5.2/lib/module-zipfile.html

Walter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101014/6b260038/attachment.html>


More information about the Tutor mailing list