ZIP=single command and compression rate

Hi,

I created a button so that all selected folders (or files) is zipped in turn to its own ZIP file.

@nodeselect @nofilenamequoting @runonce:@set destfld={dlgchoose|Where?|Here={sourcepath}+Destination={destpath}+Parent={filepath$|..\..}} Copy ZIP=single TO "{$destfld}"

Works nice but I'd really need a way to set the compression rate to 0 (no compression at all, copy mode) without to have to set it by default in the global zip settings. Is it possible? If not, it's a musthave.

Otherwise the next command that uses 7-zip use the copy mode to create zip archive but of course it doesn't work like ZIP=single when multiple folders are selected.

@nodeselect @nofilenamequoting @runonce:@set destfld={dlgchoose|Where?|Here={sourcepath}+Destination={destpath}+Parent={filepath$|..\..}} @runonce "D:\Mes Programmes\Outils\7-ZIP\7zG.exe" a -tzip "{$destfld}{file$|noext}.zip" {allfileshort$} -mx0

Would be there a way to use 7-zip so that it compresses all selected folders content into its own ZIP file?

With the second button, try changing the last line to this (note that the @runonce is removed):

"D:\Mes Programmes\Outils\7-ZIP\7zG.exe" a -tzip "{$destfld}{file$|noext}.zip" "{file$}" -mx0

That should add each selected item to its own archive.

Thank you, it works :wink:

This is a great idea but when I use it the separate zip files that are created are empty and I get the following message for each file:


Try this (added the cd line):

@nodeselect @nofilenamequoting @runonce:@set destfld={dlgchoose|Where?|Here={sourcepath}+Destination={destpath}+Parent={filepath$|..\..}} cd {sourcepath} "C:\Program Files\7-ZIP\7zG.exe" a -tzip "{$destfld}{file$|noext}.zip" "{file$}" -mx0

(Note: I also changed the Program Files path to what it is on my computer.)

Thanks Leo. Problem solved.