471,305 Members | 1,135 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

zipfile handling

is there a rename utility for zipfile that can rename a directory
inside a zipfile? also what's the best way to change the a file
content inside a zip?

So if i have the following file in the zip file:

A/a1.txt
A/a2.txt
B/b1.txt

I want to rename A to be A1, and B to be B1, as well as changing the
content of a1.txt and b1.txt.

I can certainly extract them to filesystem then rezip, but there might
be a better way to do this?

thanks.

Nov 7 '07 #1
1 1095
ad-hoc wrote:
is there a rename utility for zipfile that can rename a directory
inside a zipfile? also what's the best way to change the a file
content inside a zip?

So if i have the following file in the zip file:

A/a1.txt
A/a2.txt
B/b1.txt

I want to rename A to be A1, and B to be B1, as well as changing the
content of a1.txt and b1.txt.

I can certainly extract them to filesystem then rezip, but there might
be a better way to do this?

thanks.
Nope not a better way. The zipping requires that you go through the process to
get a proper zip file.

-Larry
Nov 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Waitman Gobble | last post: by
3 posts views Thread by rzed | last post: by
5 posts views Thread by Waguy | last post: by
11 posts views Thread by Hari Sekhon | last post: by
8 posts views Thread by =?utf-8?B?5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B | last post: by
3 posts views Thread by towers | last post: by
5 posts views Thread by Neil Crighton | last post: by
1 post views Thread by John Machin | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.