Shyke Posted November 23, 2005 Share Posted November 23, 2005 I was wondering how to get AutoIt to unzip files, could anyone help me out on this? Link to comment Share on other sites More sharing options...
themax90 Posted November 23, 2005 Share Posted November 23, 2005 See this post:http://www.autoitscript.com/forum/index.php?showtopic=17727 Link to comment Share on other sites More sharing options...
Shyke Posted November 23, 2005 Author Share Posted November 23, 2005 Congradulations, you have confused the crap outta me with that topic! Could anyone simplify it to what I need please? Link to comment Share on other sites More sharing options...
LxP Posted November 23, 2005 Share Posted November 23, 2005 Would FileInstall() suit your needs? Personally I would consider it a lot less mucking around. Link to comment Share on other sites More sharing options...
Shyke Posted November 23, 2005 Author Share Posted November 23, 2005 The file to unzip must be variable and is generally very large and gets downloaded from the internet. Link to comment Share on other sites More sharing options...
LxP Posted November 23, 2005 Share 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. Link to comment Share on other sites More sharing options...
Shyke Posted November 23, 2005 Author Share Posted November 23, 2005 How would that work? Link to comment Share on other sites More sharing options...
LxP Posted November 23, 2005 Share 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') Link to comment Share on other sites More sharing options...
trids Posted November 23, 2005 Share 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 Link to comment Share on other sites More sharing options...
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