title: Zipping java program (folder and files)
body: <p>I have a java program that I would like to zip to a file simply by running a batch script. I have done this before but have sadly lost the batch file and cannot recover it.</p>
  <p>So here goes. I have a program structure:</p>
  <pre><code>workspace\PhoneManager
      .git
      .settings
      bin
      lib
          &quot;libraries&quot;
      res
          &quot;images&quot;
      src
          &quot;source code&quot;
      .classpath
      .gitignore
      .project
      App.ja
      Windows_runTool.bat
  </code></pre>
  <p>I want to pack a set of desired files into a zip. The desired files are in this specific case <code>App.jar</code>, <code>Windows_runTool.bat</code> and <code>res</code> folder and all of it's content.</p>
  <p>Thanks.</p>
  <h1>EDIT</h1>
  <p>I managed to use 7-zip and add the following command to a batch script:</p>
  <pre><code>7z a PhoneManager.zip App.jar res/ Windows_runTool.bat
  </code></pre>
  <p>I do however want to use a .lst file in which I can add the names of the files I want to include to my command so I don't have to change the batch script in case the amount of files build up.</p>
  <p>I tried the following:</p>
  <pre><code>7z a PhoneManager.zip filelist.lst
  </code></pre>
  <p>And the listfiles.lst contains the following:</p>
  <pre><code>App.jar
  res/
  Windows_runTool.bat
  </code></pre>
  <p>But that just produces an empty zip file.</p>
  <p>Do anyone have an idea to achieve that?</p>