I have the following folder structure:
I want to run the 7-zip command line tool to compress all the files in
folder1 to a zip file called
Running the following
7za.exe a -tzip folder1.zip folder1\\*.*
produces a zip file as expected. However, when I open the zip file, it has a folder in it called
folder1, and inside that I have all the files that were inside that folder. I don't want the folder name added to the zip folder, i.e. I would like to add all the files in a "Flat" file format.
I also don't want to recursively run the command line tool for each individual file/folder.
Is there a switch that provides this functionality?