Jump to content

unzip file


Alek
 Share

Recommended Posts

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 by Alek

[font="Impact"]Never fear, I is here.[/font]

Link to comment
Share on other sites

I had to do the same thing and you can use a Self-extracting zip

http://www.chilkatsoft.com/ChilkatSfx.asp

I used that program and this is the code i used to make it extract and stuff

Run(@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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...