title: Compressing only files using 7z without preserving the path
body: <p>I am using 7z command line executable to zip files, but I see that while adding to an archive the path of the files is preserved in the archive.</p>
  
  <p>So if I do</p>
  
  <pre><code>7z a -tzip  myzip.zip dir1\dir2\*
  </code></pre>
  
  <p>the archive myzip.zip will contain the path dir1\dir2. I do not want this, rather I want only the files to be added to the zip file without the paths being preserved.
  I searched quite a bit but do not seem to find any way of doing this, maybe I am missing something obvious?</p>
  
  <p>Thanks</p>