Possible Duplicate: Create an archive from a directory without the directory name being added to the archive
I have a folder that I want to zip completely:
MyFolder
|
|--- SubFolder1
|--- SubFolder2
|--- file1
|--- file2
I want to zip everyting into myzip.7z, but I don't want 'MyFolder' to be inside the archive:
myzip.7z
|
|--- SubFolder1
|--- SubFolder2
|--- file1
|--- file2
instead of
myzip.7z
|
|--- MyFolder
|
|--- SubFolder1
|--- SubFolder2
|--- file1
|--- file2
How do I do that?
-r,7zmanual says "Recurse subdirectories (CAUTION: this flag does not do what you think, avoid using it)" – Gregory Pakosz Dec 01 '17 at 16:447z a myzip ./MyFolder/*syntax works brilliantly. But it is an absurd syntax, I must say. – pgr Jun 05 '20 at 11:54