How to compress directory with 7-Zip without adding directory path

Window context menu has a handy 7-Zip actions to compress selected directory, but it has one problem: it puts directory into archive.

Here is command line how to avoid that:
7z a -r -tzip [directory].zip .\[directory]\*

That's not too handy to type it, so it's very simple to add command to the Total Commander bar.
Command: 7z.exe
Parameters: a -r -tzip %N.zip .\%N\*

Comments