Compressing folders in Windows using Python.
bren[at]gillatt.org
bren at gillatt.org
Sun Jan 1 10:27:01 EST 2006
Heiko Wundram wrote:
> Steven D'Aprano wrote:
>
>>>But when I run this script in Windows XP, I get an error while
>>>executing the above zip command.
>>
>>Would you like to tell us what error you get?
>
>
> I presume the error he's seeing is something along the line of:
>
> "zip: Bad command or filename."
>
> That's basically because there is no commandline builtin for zipping up
> files on Windows, and I don't know of WinZIP or any of the InfoZIP derived
> GUIs installing a command-line zipper.
>
> What might help you though (and keep you platform-independent):
>
> http://www.python.org/doc/2.4.2/lib/module-zipfile.html
>
> --- Heiko.
Go and get something like 7-ZIP and put a path environment variable in.
More information about the Python-list
mailing list