ZIP Support (so I can finally retire "PowerDersk Pro")
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
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.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
Thanks for enhancing zip_extract()
.
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:
Or this one liner,
:
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,"|");
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")
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>"),"|");
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>"),"|");
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
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?
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")
Deleted duplicate post.
Last edited by serendipity on 02 Jul 2013 16:21, edited 1 time in total.
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
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]
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")
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?Marco wrote:Yes, I guess it's due to overlong filename.
-
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")
Can you post the link to such a problem archive?
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
Not sure if Marco is around, so will share one from his archive:admin wrote:Can you post the link to such a problem 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")
Works fine here. 
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
Here too, but if you move it to a path which is overlong then it does not. I guess there is a limit.admin wrote: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")
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")
OK, ZipFolder technology is a shell function and all shell functions fail when paths get > 260.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).
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: ZIP Support (so I can finally retire "PowerDersk Pro")
Thought so, no big deal.admin wrote:OK, ZipFolder technology is a shell function and all shell functions fail when paths get > 260.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).
XYplorer Beta Club