in reply to Uncompressing ZIP Files

EnderPax,

Um, if it's really a WinZip self-extracting ZIP file, why not use system() to let it uncompress itself? For example:

#!/usr/bin/perl my $sfxfile = "samples.exe"; system( "$sfxfile" ) == 0 or die "Can't unzip $sfxfile";

This is pretty much the same code found in perlfunc:system and worked on my system (Win98) with an sfx created with WinZIP 7, SP1.

--f

Replies are listed 'Best First'.
Re: Re: Uncompressing ZIP Files
by a (Friar) on Dec 18, 2000 at 09:50 UTC
    Perhaps they want to unzip it on a non-winXX system?

    a

      a,

      Good point, though the original poster specifically mentioned WinZIP.

      --f