Jump to content
Sign in to follow this  
Jeffel

read a file in a *.zip

Recommended Posts

Jeffel

Hi All !

I would like to read a file in *.zip !

How can I proceed plz ?

The *.zip is : Simdata.zip

In this zip i would like to read the file jefel.dat in the path "sim\acdata\jeffel.dat"

help me !

Thanx !

Share this post


Link to post
Share on other sites
this-is-me

You will have to use a command line unzipper. Unzip support is not and will not be included in autoit.


Who else would I be?

Share this post


Link to post
Share on other sites
Matt @ MPCS

I personally use 7zip for command line extraction. This is a open source, lightweight, multiple format unzipper.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Guest Py7|-|[]/\/

I do it the old skool way, with WinRAR.

Share this post


Link to post
Share on other sites
normeus

home page to 7-zip

http://www.7-zip.org/

download it from:

http://prdownloads.sourceforge.net/sevenzip/7z313.exe

this should work:

RunWait("C:\progra~1\7-zip\7z x c:\simdata.zip -oc:\temp sim\acdata\jeffel.dat")

C:\progra~1\7-zip\7z = your program's location

x = switch to extract and keep folder structure

c:\simdata.zip = zip file to extract from

-oc:\temp =output directory (it will be created if not found)

sim\acdata\jeffel.dat = file to be selected. The folder structure will be copied

this means your file will be in c:\temp\sim\acdata\jeffel.dat when done

Share this post


Link to post
Share on other sites
Jeffel

Thanx all for yours reply..

i'am going to test your script normeus !

Thanx a lot all of you !

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  

×