Jump to content
Sign in to follow this  
Alek

unzip file

Recommended Posts

Alek

is there a function for unziping files?

Edited by Alek

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

Share this post


Link to post
Share on other sites
Alek

plz help me, its either that or useing fileinstall on 300-400 files


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

Share this post


Link to post
Share on other sites
NELyon

Why not just FileInstall a command line unzipper and use that?

Use 7-Zip. Hands down best and free.

Share this post


Link to post
Share on other sites
Alek

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]

Share this post


Link to post
Share on other sites
narayanjr

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")

Share this post


Link to post
Share on other sites
Emiel Wieldraaijer

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

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  

×