On Wed, Dec 17, 2008 at 17:25, Fisher, John <john.j.fis...@salliemae.com> wrote: > I am dependent on a vendor who think PGP is hard to do. ACK! > So, I was trying to use Perl to process the winzip password protected file. I > am unfamiliar with the Expect module and looking out on CPAN it I am not sure > what you were suggesting. It looks like it spawns a processes. Are you saying > I should test the zipped file and if it requires a password spawn off a > process to do some winzip command line process? "Puppet String"? snip
It sounds like you are on a Win32 machine. If so, download 7-zip* and install it. You should then be able to decompress the files like this: my $file = "foo.zip"; my $password = "drowssap"; system("c:/program files/7-zip/7z.exe", "x", "-p", $password, $file) == 0 or die "an error occurred while trying to unzip $file"; Warning, this is untested code, you may need to change things slightly to get them to work. * http://www.7-zip.org/download.html -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/