Jump to content

Recommended Posts

Posted (edited)

is there a function for unziping files?

Edited by Alek

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

Posted

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

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

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

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

Posted

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

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

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
×
×
  • Create New...