Page 1 of 1

7Zip - "add to archiv" Script

Posted: 21 Aug 2020 07:25
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:

Re: 7Zip - "add to archiv" Script

Posted: 21 Aug 2020 09:04
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.