Sign in to follow this  
Followers 0
NEMESISaka

More one topic with unzip

3 posts in this topic

Hello...

I have search on forum for some topic like this, but i found some a bit complex...

I dont know much of autoit, so, if you can say me only if is possible extract one file giving only the directory and name of the zip?

For exemple...

$ZipDirectory = @DesktopDir
$ZipName = @DesktopDir

"the command"($ZipDirectory & "\" & ZipName (for give the directory and name of zip), @DesktopDir(the directory where the files will be pasted

If anyone can help me, thank you...

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hello...

I have search on forum for some topic like this, but i found some a bit complex...

I dont know much of autoit, so, if you can say me only if is possible extract one file giving only the directory and name of the zip?

For exemple...

$ZipDirectory = @DesktopDir
$ZipName = @DesktopDir

"the command"($ZipDirectory & "\" & ZipName (for give the directory and name of zip), @DesktopDir(the directory where the files will be pasted

If anyone can help me, thank you...

Hi,

see:

http://www.autoitscript.com/forum/index.php?showtopic=73425

Download the zip.au3 und copy it into your AutoIT\include folder.

You have to use Function _Zip_Unzip($hZipFile, $hFilename, $hDestPath, $flag = 1) where

; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)

; $hFilename - Name of the element in the zip archive ex. "hello_world.txt"

; $hDestPath - Complete path to where the files will be extracted

; $flag = 1

; - 1 no progress box

; - 0 progress box - 0 progress box

#include <zip.au3>
_Zip_Unzip ("c:\myzip.zip", "filename_and_suffix_to_extract", @DesktopDir & "\myzip", 1)

;-))

Stefan

Edited by 99ojo

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you alot!!

Edited by NEMESISaka

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