title: DOS batch : Different behaviour between command line and drag and drop
body: <p>I'm trying to write the first argument of a command line in a file, but it works in command line and not with drag and drop.</p>
  
  <p>The very simple batch file (<code>test_echo.cmd</code>) is as following:</p>
  
  <pre><code>@echo OFF
  echo %1 &gt; echo_arg_in_file.txt`
  </code></pre>
  
  <p>On the command line,</p>
  
  <pre><code>C:\rep&gt;test_echo.cmd "C:\rep\fichier de test.txt"`
  </code></pre>
  
  <p>creates a file <code>echo_arg_in_file.txt</code> with <code>"C:\rep\fichier de test.txt"</code> written inside.</p>
  
  <p>But with a drag and drop of the file <code>"C:\rep\fichier de test.txt"</code> on the batch file, nothing happens... (the test to delete <code>&gt; echo_arg_in_file.txt</code> was done before and displays well <code>"C:\rep\fichier de test.txt"</code>)</p>
  
  <p>Any explanation?</p>