Goodmorning!
I have a bunch of files in a directory (lets say: test1.txt, test2.txt, test3.txt) and I would like to zip them in different archives (test1.zip, test2.zip and test3.zip). How can I do that in one go? Now I rightclick the file and choose "Directory Opus Archives -> Add To .....". and I have to repeat it for every file.
Sorry if i'm overlooking something!
Regards,
Rien van Ham
Oh no, what an ah(!) am I. I only looked under "New Folder", "New Archive" (why is it there?) and rightclicking the file.
Thanks again Leo!
wobbly
April 14, 2016, 8:10am
4
great this is what i need but how to set compression type eg 7z thx
Leo
April 14, 2016, 8:42am
5
This button does the same but with 7z archives:
FilesToSeparate7zArchives.dcf (992 Bytes)
(For how to add the .dcf file to your toolbar: How to add buttons from this forum to your toolbars .)
JScript script code for reference:
function OnClick(clickData)
{
var cmd = clickData.func.command;
cmd.deselect = false; // Prevent automatic deselection
cmd.ClearFiles();
for (var eSel = new Enumerator(clickData.func.sourcetab.selected); !eSel.atEnd(); eSel.moveNext())
{
cmd.RunCommand("Copy \"" + eSel.item().realpath + "\" HERE ARCHIVE=.7z CREATEFOLDER=\"" + eSel.item().name_stem + ".7z\"");
}
}
wobbly
April 14, 2016, 9:13am
6
great that did the trick thank you