[XYScript] 7-ZipXY: The Right-Click Options

Discuss and share scripts and script files...
Post Reply
WirlyWirly
Posts: 195
Joined: 21 Oct 2020 23:33
Location: Through the Looking-Glass

[XYScript] 7-ZipXY: The Right-Click Options

Post by WirlyWirly »

This script contains the 3 most useful 7-Zip commands, normally found in the right-click menu after installation. The only difference is that they've been re-written to be used portably by XY, no relying on the host to have these options in their registry.

Image
  • Extract to "*\": Extract each selected archive to its own folder
  • Extract here: Extract each selected archive into the current folder
    -
  • Extract to "*\" in other pane: Extract each selected archive to its own folder in the inactive pane
  • Extract to other pane: Extract each selected archive into the inactive pane
    -
  • Add to archive...: Create a single archive out of the selected items
Extractions display a progress bar
Image

Add to Archive will display the full creation window with all accompanying options
Image

Included with the script you'll find the folder 7-Zip64 (taken directly from 7-ZipPortable), which contains the file 7zG.exe. This is the executable that will extract/create archives while also generating the familiar GUI screens. I've also included a 7-Zip icon, if you want to spice up your CFI/Toolbar... It's snazzy!

Here's the link to the documentation if you'd like to add your own functionality.

Installation
  • Download and extract the attached archive.
  • Move the folder '7-ZipXY' to your <xyscripts> folder.
  • Load the script using your preferred approach (Toolbar, hotkey, from another script, etc)
    Command = ::Load "<xyscripts>\7-ZipXY\7-ZipXY.xys";
Attachments
7-ZipXY.7z
(1.48 MiB) Downloaded 151 times
Last edited by WirlyWirly on 01 May 2022 18:18, edited 7 times in total.

Horst
Posts: 1090
Joined: 24 Jan 2021 12:27
Location: Germany

Re: [XYScript] 7-ZipXY: The Right-Click Options

Post by Horst »

I'm using my own 7z buttons but let me suggest one option for your script
which for me is the native way using a 2 pane mode.
Extract into the current other pane folder.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73

WirlyWirly
Posts: 195
Joined: 21 Oct 2020 23:33
Location: Through the Looking-Glass

Re: [XYScript] 7-ZipXY: The Right-Click Options

Post by WirlyWirly »

Horst wrote: 01 May 2022 14:43 I'm using my own 7z buttons but let me suggest one option for your script
which for me is the native way using a 2 pane mode.
Extract into the current other pane folder.

I use dual-panes myself but for some reason this had never even crossed my mind :veryconfused:

Easy addition and could prove useful, added it to the script :tup:

Post Reply