Page 8 of 14

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

Posted: 27 Jun 2013 13:57
by admin
:) Yes, might be an idea...

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

Posted: 27 Jun 2013 16:08
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:

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

Posted: 27 Jun 2013 16:22
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.

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

Posted: 27 Jun 2013 16:30
by grindax
.

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

Posted: 27 Jun 2013 17:08
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?

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

Posted: 27 Jun 2013 17:29
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. :?

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

Posted: 27 Jun 2013 18:21
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

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

Posted: 27 Jun 2013 18:36
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 2287 times

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

Posted: 27 Jun 2013 18:58
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?

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

Posted: 27 Jun 2013 19:00
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:

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

Posted: 27 Jun 2013 19:14
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 2283 times
Much better, only the last one, XYplorer.url is missing.

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

Posted: 27 Jun 2013 20:25
by admin
Whatever, all will be great (tomorrow you get Zip View... :biggrin: ). But now I have to focus on soccer... :mrgreen:

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

Posted: 27 Jun 2013 20:28
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! :)

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

Posted: 27 Jun 2013 20:45
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:

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

Posted: 27 Jun 2013 21:12
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