http://qs321.pair.com?node_id=655382


in reply to how to extract zip files to specified location

Hi try this,

use strict; use Archive::Zip; my $destinationDirectory = 'C:\test'; #####Specify your destination di +rectry to unzip the file my $zip = Archive::Zip->new('C:\00000007.zip'); #####This is the sourc +e zip file path foreach my $member ($zip-> members){ my $extractName = $member->fileName; $member->extractToFileNamed("$destinationDirectory\\$extractName") +; }

Punitha

Replies are listed 'Best First'.
Re^2: how to extract zip files to specified location
by bliako (Monsignor) on Sep 13, 2019 at 11:59 UTC