ZIP Support (so I can finally retire "PowerDersk Pro")

Features wanted...
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by LittleBiG »

The dialog after clicking on "Add to Zip..." context menu preselects the whole filename. It would be better, if it selected only the filename without the .zip extension.

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

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by admin »

Yup, done.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

Thanks for enhancing zip_extract() :appl: .
Now I can extract specific files (checked by user) to current folder using this simple script, just select a zip file and run the script:

Code: Select all

//Create list
  $ziplist=zip_list(,"|",0); 
//Remove Tabs
  $ziplist=replace($ziplist,"<tab>", ""); 
//Create input select window
  $extract=inputselect("Check Items to extract to current folder",$ziplist,"|",3,,,,"<curitem>"); 
//Extract checked files to current folder
  zip_extract (,<curpath>,$extract,"|");
Or this one liner, :) :

Code: Select all

    zip_extract (,<curpath>,inputselect("Check Items to extract to current folder",replace(zip_list(,"|",0),"<tab>", ""),"|",3,,,,"<curitem>"),"|");

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

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by admin »

Cool!

Next version you can get the generic icons:
zip_extract (,<curpath>,inputselect("Check Items to extract to current folder",replace(zip_list(,"|",0),"<tab>", ""),"|",11,,,,"<curitem>"),"|");

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

Thanks for generic option.
BTW, I am getting inconsistencies with some zip files where i see only alert icons.
Also, with Marco's unofficial beta archive which is shared via dropbox I see first item Catalogdefault name missing and alert icon. Is it because of the long name or something?

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

Deleted duplicate post.
Last edited by serendipity on 02 Jul 2013 16:21, edited 1 time in total.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by Marco »

Yes, I guess it's due to overlong filename.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

Marco wrote:Yes, I guess it's due to overlong filename.
But if i copy the file to another location (desktop or my docs) and try that script (or simply Zip view - F11) it seems alright. So i am guessing its the long path with dropbox folder. Can you confirm this?

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

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by admin »

Can you post the link to such a problem archive?

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

admin wrote:Can you post the link to such a problem archive?
Not sure if Marco is around, so will share one from his archive:
https://www.dropbox.com/s/h026rpfegiaci ... b01%5D.zip

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

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by admin »

Works fine here. :|

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

admin wrote:Works fine here. :|
Here too, but if you move it to a path which is overlong then it does not. I guess there is a limit.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

After some testing the magic number for the path+file name seems to be 406 characters until which all is fine, if i have one more extra character i start to lose items from zip view (starting from top).

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

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by admin »

serendipity wrote:After some testing the magic number for the path+file name seems to be 406 characters until which all is fine, if i have one more extra character i start to lose items from zip view (starting from top).
OK, ZipFolder technology is a shell function and all shell functions fail when paths get > 260.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Post by serendipity »

admin wrote:
serendipity wrote:After some testing the magic number for the path+file name seems to be 406 characters until which all is fine, if i have one more extra character i start to lose items from zip view (starting from top).
OK, ZipFolder technology is a shell function and all shell functions fail when paths get > 260.
Thought so, no big deal.

Post Reply