I have the following folder structure
- root
- folder1
- folder2
- folder3
- 7za.exe
I want to run the 7-zip command line tool to zip up all the files in folder1 to a zip file called folder1.zip.
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 listed. I don't want the folder name added to the zip folder, i.e. 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. Is there a switch that provides this functionality?

cdinto folder1 and7za.exe a -tzip ..\folder1.zip *.*? – zpletan Sep 26 '11 at 17:09