title: Archiving files in directory with 7zip command into single zips
body: <p>After doing much searching around here, I have managed to put together a batch script that uses 7zip to archive a directory of files. The issue I'm running into is that instead of putting each file into it's own zip, it's archiving the entire folder of files multiple times and simply renaming them to match each file in the folder.</p>
  
  <pre><code>for %%X in (C:\test\*.txt) do "C:\Program Files (x86)\7-Zip\7z.exe" a -tzip "%%X.zip" *.txt
  </code></pre>
  
  <p>In the code above, the idea is to look in C:\test\ for ALL txt files, and zip them up into individual zip files. It sort of does this, but instead of having multiple zip files with 1 file inside each, I have multiple zip files with EVERY text file inside of them. Each zip being identical except for the name.</p>
  
  <p>Anyone have some ideas? I'm sure I'm just sticking something in the wrong place, but I've tried just about everything I can think of at this point.</p>