title: Running bat file with paramaters
body: <p>I have bat (<code>file.bat</code>) file with the following lines:</p>
  
  <pre><code>echo "Upgrading..."
  cp %1/global/a-* %2/global/
  </code></pre>
  
  <p>I run in CMD the following:</p>
  
  <pre><code>bash file.bat /opt/ad-kf041f /srv/
  </code></pre>
  
  <p>As I understand, it should put the parameters instead of the <code>%num</code>, but it doesn't and I get:</p>
  
  <pre><code>cp: cannot stat `%1/global/a-*': No such file or directory
  </code></pre>
  
  <p>As you can see, I try the suggestion of <a href="https://stackoverflow.com/questions/26551/how-to-pass-command-line-parameters-to-a-batch-file">this question</a>, but it still gives me the same error.</p>
  
  <p>I also try:</p>
  
  <pre><code>set  arg1=%1
  echo %arg1%
  </code></pre>
  
  <p>and it prints: <code>%arg1%</code></p>
  
  <p>Where am I wrong?</p>