Compressing folders in Windows using Python.
Heiko Wundram
modelnine at bit-bukket.org
Sun Jan 1 07:50:33 EST 2006
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.
More information about the Python-list
mailing list