Shyke Posted November 23, 2005 Posted November 23, 2005 I was wondering how to get AutoIt to unzip files, could anyone help me out on this?
themax90 Posted November 23, 2005 Posted November 23, 2005 See this post:http://www.autoitscript.com/forum/index.php?showtopic=17727
Shyke Posted November 23, 2005 Author Posted November 23, 2005 Congradulations, you have confused the crap outta me with that topic! Could anyone simplify it to what I need please?
LxP Posted November 23, 2005 Posted November 23, 2005 Would FileInstall() suit your needs? Personally I would consider it a lot less mucking around.
Shyke Posted November 23, 2005 Author Posted November 23, 2005 The file to unzip must be variable and is generally very large and gets downloaded from the internet.
LxP Posted November 23, 2005 Posted November 23, 2005 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.
LxP Posted November 23, 2005 Posted November 23, 2005 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')
trids Posted November 23, 2005 Posted November 23, 2005 you can find some free zip/unzip commandline applets to automate from au3 here ..http://www.mirrorservice.org/sites/ftp.inf.../infozip/WIN32/HTH
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now