title: How to make SHIFT work with %* in batch files
body: <p>In my batch file on Windows XP, I want to use <code>%*</code> to expand to all parameters except the first.<br/><strong>Test file</strong> (<em>foo.bat</em>):</p>
  
  <pre><code>@echo off
  echo %*
  shift
  echo %*
  </code></pre>
  
  <p>Call:</p>
  
  <pre><code>C:\&gt; foo a b c d e f
  </code></pre>
  
  <p><strong>Actual</strong> result:</p>
  
  <pre><code>a b c d e f
  a b c d e f
  </code></pre>
  
  <p><strong>Desired</strong> result:</p>
  
  <pre><code>a b c d e f
  b c d e f
  </code></pre>
  
  <p>How can I achieve the desired result? Thanks!!</p>