Alek Posted August 5, 2007 Share Posted August 5, 2007 (edited) is there a function for unziping files? Edited August 5, 2007 by Alek [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
Alek Posted August 5, 2007 Author Share Posted August 5, 2007 plz help me, its either that or useing fileinstall on 300-400 files [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
NELyon Posted August 5, 2007 Share Posted August 5, 2007 Why not just FileInstall a command line unzipper and use that? Use 7-Zip. Hands down best and free. Link to comment Share on other sites More sharing options...
Alek Posted August 5, 2007 Author Share Posted August 5, 2007 (edited) Why not just FileInstall a command line unzipper and use that?Use 7-Zip. Hands down best and free.hmm, command line sounds interesting, whould you be nice and write the command for unziping, and i tryed 7-zip and i couldent get it unzip. Edited August 5, 2007 by Alek [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
narayanjr Posted August 5, 2007 Share Posted August 5, 2007 I had to do the same thing and you can use a Self-extracting ziphttp://www.chilkatsoft.com/ChilkatSfx.aspI used that program and this is the code i used to make it extract and stuffRun(@ComSpec & " /c " & 'start "Stuff" "File Path"', "", @SW_HIDE) WinWaitActive("Chilkat Zip 2 Secure EXE") ControlSend("Chilkat Zip 2 Secure EXE", "", 1003, "Path to Extract to") Sleep(250) ControlClick("Chilkat Zip 2 Secure EXE", "", 1001) Do $text = WinGetText("Chilkat Zip 2 Secure EXE", "") $text = StringTrimLeft($text, 141) $text = StringTrimRight($text, 1) Sleep(500) Until $text = "Finished!" ControlClick("Chilkat Zip 2 Secure EXE", "", 2) MsgBox(0, "Done", "Install Successful") Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted August 5, 2007 Share Posted August 5, 2007 Something like this (you'll need 7za.exe, dont forget the text file which contains the license information) FileInstall ("7za.exe", "c:\test\",1) FileInstall ("7za-readme.txt", "c:\test\",1) $ExtractCommand = ('"' &"c:\test\7za.exe" & '" x ' & @Tempdir & "\unpackme.zip -y -o" & '"' & "c:\unzip" & '"') $ExtractPID = RunWait($ExtractCommand ,"", @SW_HiDE) The'"' and '" is used for folders with spaces because you are invoking a dos box Best regards,Emiel Wieldraaijer 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