Sign in to follow this  
Followers 0
danielkza

Zip Files Recursive Listing

4 posts in this topic

#1 ·  Posted (edited)

This function return an array containing all files from within an zip file.

Uses same structure as WeaponX array based,but uses ReDim,as explained in the comments.

EDIT: Forgot to say,only tested on Windows XP,probably won't work on 2000 or less.

Example:

#include <Array.au3>

$Array = _ZipRecursiveSearch("C:\test.zip") 
_ArrayDisplay($Array)[oÝ÷ Ø[§rب«­¢+ÙÕ¹}i¥ÁIÕÉÍ¥ÙMÉ  ÀÌØíMÑÉѥȰÀÌØíAÑÑɸôÅÕ½Ðì¸ÅÕ½Ðì°ÀÌØíIÕÉÍôQÉÕ°ÀÌØíÁÑ ôÀ¤($ì]¹Ñ¼Íѽɱ½°ÍÑÉÐ¥ÉѽÉäÕÍÀÌØí½%Ñ´¹AÑ ¥¹±Õ̽±ÉÌ(%%ÀÌØíÁÑ ôÀQ¡¸($%±½°ÀÌØíi¥ÁMÉ¡MÑÉÑ¥ÈôÀÌØíMÑÉÑ¥È(%¹%($($ì
ÉÑM¡±°½©Ð(1½°ÀÌØí½M¡±°ô=©
ÉÑ ÌäíM¡±°¹ÁÁ±¥Ñ¥½¸Ìäì¤(%ÉɽȽȹ½Ð%Í=¨ ÀÌØí½M¡±°¤Q¡¸IÑÕɸ($($ì
Éѽ±È½©Ð(1½°ÀÌØí½¥ÈôÀÌØí½M¡±°¹9µMÁ ÀÌØíMÑÉѥȤ(%ÉɽȽȹ½Ð%Í=¨ ÀÌØí½¥È¤Q¡¸IÑÕɸ($($ì
Éѽ±É%ѵ̽©Ð(1½°ÀÌØí½%ѵÌôÀÌØí½¥È¹%ÑµÌ ¤(%ÉɽȽȹ½Ð%Í=¨ ÀÌØí½%ѵ̤Q¡¸IÑÕɸ($($ì%¥Ð¥ÌÑ¡¥ÉÍÐ¥ÑÉÑ¥½¸±ÉÑÑ¡±½°ÉÉä(%%ÀÌØíÁÑ ôÀQ¡¸($%±½°ÀÌØíi¥ÁMÉ¡ÉÉålÅt(%¹%($($ìQ¡ÀÌØí¤¥Ì¹ÕÍÀÌØí½%ѵ̹%Ñ´¹Ì¸¥¹à(%1½°ÀÌØí¤ôÀ(%]¡¥±Ä($$ìн±É%Ñ´½©Ð($$ÀÌØí½%Ñ´ôÀÌØí½%ѵ̹%Ñ´ ÀÌØí¤¤($%%ÉɽÈ=È9½Ð%Í=¨ ÀÌØí½%Ñ´¤Q¡¸á¥Ñ1½½À(($$ìÐÀÌØí%Ñ´ÌäíÌÁÑ ($$ÀÌØí9áÑ¥±ôÀÌØí½%Ñ´¹AÑ  ¤($$($$ì%¥ÐÌäí̽±È°ÉÕÉÍ($%%ÀÌØí½%Ñ´¹%ͽ±È ¤Q¡¸($$%%ÀÌØíIÕÉÍQ¡¸}i¥ÁIÕÉÍ¥ÙMÉ  ÀÌØíi¥ÁMÉ¡MÑÉѥȵÀìÅÕ½ÐìÀäÈìÅÕ½ÐìµÀìÀÌØí9áÑ¥±°ÀÌØíAÑÑɸ±QÉÕ°ÀÌØíÁÑ ¬Ä¤($$ì%¹½Ð±¥±Ñ¼Ñ¡ÉÉä($%±Í($$%%MÑÉ¥¹IáÀ ÀÌØí9áÑ¥±°ÀÌØíAÑÑɸ°À¤Q¡¸($$$$ì%¹Éµ¹Ð¥±½Õ¹ÑÈ($$$$ÀÌØíi¥ÁMÉ¡ÉÉålÁt¬ôÄ($$$$ì$­¹½ÜI¥´¥Ìͱ½Ü±ÕÐѡɥ͸ÌäíÐͽµÑ¡¥¹±¥­Ñ¥ÉM¥é½ÈÑ¡é¥À¥±Ì($$$%I¥´ÀÌØíi¥ÁMÉ¡ÉÉålÀÌØíi¥ÁMÉ¡ÉÉålÁt¬Åt($$$$ìÑÕ±±ä¥±Ñ¼Ñ¡ÉÉä($$$$ÀÌØíi¥ÁMÉ¡ÉÉålÀÌØíi¥ÁMÉ¡ÉÉålÁutôÀÌØíi¥ÁMÉ¡MÑÉѥȵÀìÀÌØí9áÑ¥±($$%¹%($%¹%($$ì%¹Éµ¹Ð¥¹à½Õ¹ÑÈ($$ÀÌØí¤¬ôÄ(%]¹($(%%ÀÌØíÁÑ ôÀQ¡¸($$ì±ÑMÑÉÐ¥ÉѽÉäɽ´ÙÉä±µ¹Ð±ÕÍ¥ÐÉÑ̽¹ÕÍ¥½¸Ý¥Ñ é¥À¥±Ì($%½ÈÀÌØí¤ôÄQ¼ÀÌØíi¥ÁMÉ¡ÉÉålÁt($$$ÀÌØíi¥ÁMÉ¡ÉÉålÀÌØí¥tôMÑÉ¥¹IÁ± ÀÌØíi¥ÁMÉ¡ÉÉålÀÌØí¥t°ÀÌØíMÑÉѥȰÅÕ½ÐìÅÕ½Ðì¤($%9áÐ($$ìIÑÕɸÉÉäѼѡÕÍÈ($%IÑÕɸÀÌØíi¥ÁMÉ¡ÉÉä(%¹%)¹Õ¹
Edited by danielkza

Share this post


Link to post
Share on other sites



This looks like it will be handy. Can I assume you are only #including array.au3 for the _ArrayDisplay()?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

This looks like it will be handy. Can I assume you are only #including array.au3 for the _ArrayDisplay()?

Yep,no includes needed.I just realized it will work for normal folders to,but there are faster functions for that.

Share this post


Link to post
Share on other sites

Yep,no includes needed.I just realized it will work for normal folders to,but there are faster functions for that.

Thanks. I was only asking because _ArrayDisplay() is not in my Array.au3 file.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0