Zip extraction of multiple files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
manuel
Posts: 1
Joined: 22 Nov 2013 10:59

Zip extraction of multiple files

Post by manuel »

Hi everybody

Is there such a thing as zip extraction for multiple files?
With Right Click -> Zip -> Extract here it extracts the first of all selected zip files.
I usually extract 50 zips at once using 7-Zip

Thanks for your help

admin
Site Admin
Posts: 67200
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Zip extraction of multiple files

Post by admin »

Hi and welcome,

no, it only extracts the focused file. For more advanced unzipping you have to a specialized software (like 7-Zip).

Don

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Zip extraction of multiple files

Post by totmad1 »

you could try this script

Code: Select all

"(smart)Multi Extract to other pane"
         $SelectedItems = get("SelectedItemsPathNames", "|");
				 $a =  get("path", i);  $zfile = ""; 
 // change (get("path", i)) to (get("path", a) to extract here
		 foreach($Item, $SelectedItems, "|") { 		 
                 $pList = zip_list($Item , <crlf>);
				 $file = gettoken( $pList, 1, <crlf>);
                 $pPath = getpathcomponent( "$file", "component", -2);
                         if ( $pPath == "" ) {
                            zip_extract($Item , $a\<curbase>\);
                          }
                     else  {
                           zip_extract($Item , "$a\");
                           }
						   $pPath =""; $file ="";
	     }					
of course this only works on zips but if you want other formats I've found 7zip has xtras
script for 7zip here http://www.xyplorer.com/xyfc/viewtopic. ... 2&start=30
HTH
totmad1 (totally mad one)

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Zip extraction of multiple files

Post by highend »

One of my scripts helped you out? Please donate via Paypal

Post Reply