7Zip - "add to archiv" Script

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Dean36
Posts: 29
Joined: 27 Jan 2015 10:50

7Zip - "add to archiv" Script

Post by Dean36 »

Moin moin, I'm looking for a script with what an archive of the selection created with the settings.
Moin moin, Ich bin auf der suche nach einem Script was mit ein Archiv von der auswahl erstellt mit den Einstellungen.

Image

Image

can someone help me?
kann mir evtl jemand weiterhelfen? :lol:

highend
Posts: 14618
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: 7Zip - "add to archiv" Script

Post by highend »

Code: Select all

    $app = "<path to 7-Zip>\7z.exe";
    $sel = quote(get("SelectedItemsPathNames", '" "'));
    $dst = <curpath> . "\" . gpc(gettoken(<selitems |>, 1, "|"), "base") . ".7z";
    $opt = " -sdel "; // Plus all your other necessary options...
    run """$app"" a $opt ""$dst"" $sel";
Rest of the options: Help file, Command Line Version - Commands + Switches...
and regarding $dst: Just one way without entering a (different) name.
One of my scripts helped you out? Please donate via Paypal

Post Reply