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

Features wanted...
admin
Site Admin
Posts: 64838
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 »

:) Yes, might be an idea...

Regmos
Posts: 268
Joined: 22 Dec 2012 07:27
Location: Copenhagen

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

Post by Regmos »

+ Scripting got a new function.
Name: Zip_Extract
Action: Extract items from a Zip archive.
Syntax: zip_extract(zipfile, path)
I got quite a few portable apps, and now i can finally do THIS even with my very limited scripting abilities.

Brilliant work :appl:
Kind regards
Regmos

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

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

Post by j_c_hallgren »

Help me understand something that seems odd, ok?

I've got an existing ZIP selected (let's call it test.zip) and when I bring up context menu for it, the two options I find unusual are the last two:
Add to zip
Add to test.zip

I guess one can have a zip within a zip? Never did it before so...
But really it's this one: How can I add test.zip to itself? I see it creates a test-01.zip but should this option be grayed out instead as it's not quite logical if the selected item is a zip itself.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

grindax

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

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 20:07, edited 1 time in total.

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 »

:appl: :appl: :appl:
Thanks for adding scripting commands.
Few thoughts:
1. Can contents of zip_list() show extensions by default like name.ext rather than just name?
2. Is it possible for command zip_extract to extract specific files? syntax: zip_extract(zipfile, path, files to extract)
3. Can command zip_extract have a smart mode for extract here, where if top folder is folder then use extract here, else use extract to folder\ ?

I am trying to achieve the following with the below code (which does not work yet but try selecting a zip file and run it from address bar):

Code: Select all

$extract=inputselect ("Checked items will be extracted to parent folder", zip_list(,"|",1),"|",3,,,,"<curitem>"); text $extract;
a. List zip archive contents with correct icons, hence request for #1. Currently it shows warning icon.
b. Extract checked files to parent folder, hence request for #2.

UPDATE: Just realized #1 will not help me to get real icons since they are inside the archive, right?
Last edited by serendipity on 27 Jun 2013 17:30, edited 1 time in total.

admin
Site Admin
Posts: 64838
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:1. Can contents of zip_list() show extensions by default like name.ext rather than just name?
It does not show the extensions??? Certainly does here. :?

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

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

Post by Nighted »

Nighted wrote:BTW, this new zip feature does not work for me, it just creates empty directories on archive and extract. Hopefully, if implemented, there will be an option to remove this from XY's context menu as I can easily create my own archive tools using the catalog or through XY's powerful scripting.
:shock: Oh. Anybody else?

v12.50.0013

Error occurs on archive and extract:

Image
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

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:1. Can contents of zip_list() show extensions by default like name.ext rather than just name?
It does not show the extensions??? Certainly does here. :?
Interestingly some show, some don't.
2013-06-27_123340.jpg
2013-06-27_123340.jpg (42.82 KiB) Viewed 2300 times

admin
Site Admin
Posts: 64838
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 »

Nighted wrote:
Nighted wrote:BTW, this new zip feature does not work for me, it just creates empty directories on archive and extract. Hopefully, if implemented, there will be an option to remove this from XY's context menu as I can easily create my own archive tools using the catalog or through XY's powerful scripting.
:shock: Oh. Anybody else?

v12.50.0013

Error occurs on archive and extract:

Image
Could it be that for some reason your system does not support zip folders. What OS is it?

admin
Site Admin
Posts: 64838
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:
admin wrote:
serendipity wrote:1. Can contents of zip_list() show extensions by default like name.ext rather than just name?
It does not show the extensions??? Certainly does here. :?
Interestingly some show, some don't.
2013-06-27_123340.jpg
Freakish. This is not supposed to happen. :om:

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:
admin wrote:
serendipity wrote:1. Can contents of zip_list() show extensions by default like name.ext rather than just name?
It does not show the extensions??? Certainly does here. :?
Interestingly some show, some don't.
The attachment 2013-06-27_123340.jpg is no longer available
Freakish. This is not supposed to happen. :om:
Yes, here's another from another PC:
2013-06-27_131248.png
2013-06-27_131248.png (16.44 KiB) Viewed 2296 times
Much better, only the last one, XYplorer.url is missing.

admin
Site Admin
Posts: 64838
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 »

Whatever, all will be great (tomorrow you get Zip View... :biggrin: ). But now I have to focus on soccer... :mrgreen:

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:Whatever, all will be great (tomorrow you get Zip View... :biggrin: ). But now I have to focus on soccer... :mrgreen:
Nice! :)

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

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

Post by Marco »

admin wrote:Whatever, all will be great (tomorrow you get Zip View... :biggrin: ). But now I have to focus on soccer... :mrgreen:
Can't agree more :mrgreen:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

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

Post by j_c_hallgren »

admin wrote:Whatever, all will be great (tomorrow you get Zip View... :biggrin: ). But now I have to focus on soccer... :mrgreen:
All this makes me think of Zip-A-Dee-Doo-Dah as in https://www.youtube.com/watch?v=LcxYwwIL5zQ
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Post Reply