title: Zipping a file with a new path
body: <p>I have the following directory tree:</p>
  
  <pre><code>mydir/
  mydir/bbb/
  mydir/bbb/ccc/
  mydir/bbb/ccc/myfile.txt
  </code></pre>
  
  <p>The file zips as follows:</p>
  
  <pre><code>bbb\ccc\myfile.txt
  </code></pre>
  
  <p>I want it to appear as</p>
  
  <pre><code>\ddd\myfile.txt
  </code></pre>
  
  <p>The command-line <code>zip</code> utility does not seem to have option. Is there another way, perhaps using Perl. I'm using a unix system.</p>