How to compress a directory with 7zip and give the archive file the name of the current directory?
I use the following command line:
"C:\Program Files\7-Zip\7z.exe" a -mx9 archive.7z -mhe=on
Instead of "archive.7z" I need the name of the current directory.
For example, if I compress the directory: "C:\test 1\test 2\test 3", the filename should be "test 2.7z".