Sign in to follow this  
Followers 0
Shyke

Unzip Files?

9 posts in this topic

I was wondering how to get AutoIt to unzip files, could anyone help me out on this?

Share this post


Link to post
Share on other sites



Congradulations, you have confused the crap outta me with that topic!

Could anyone simplify it to what I need please?

Share this post


Link to post
Share on other sites

Would FileInstall() suit your needs? Personally I would consider it a lot less mucking around.

Share this post


Link to post
Share on other sites

The file to unzip must be variable and is generally very large and gets downloaded from the internet.

Share this post


Link to post
Share on other sites

Then in my opinion, it's easiest to bundle a small freeware unzipper within your compiled script, FileInstall() it to a temporary location and invoke that.

Share this post


Link to post
Share on other sites

How would that work?

Share this post


Link to post
Share on other sites

Some of the information in the code below is fictitious for obvious reasons...

FileInstall('TheUnzipper.exe', @TempDir)
Local $Cmd = StringFormat('%s\TheUnzipper.exe -file "%s" -extract_to "%s"', @TempDir, @ScriptDir & '\TheZip.zip', @ProgramFilesDir & '\TheDestination')
; MsgBox(0, 'Debug', $Cmd)
RunWait($Cmd, '', @SW_HIDE)
FileDelete(@TempDir & '\TheUnzipper.exe')

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