title: Windows curl Batch file
body: <p>I want to make a mailgun curl call using windows batch file. Since windows shell doesn't support multiple lines, how can I execute the below curl function in windows batch file? </p>
  
  <pre><code>curl -s --user 'api:key-xxxxxxxxxx' \
      https://api.mailgun.net/v3/sandboxbxxxxxxxxxxxxx.mailgun.org/messages \
      -F from='user &lt;email@gmail.com&gt;' \
      -F to='user &lt;email@live.com&gt;' \
      -F subject='Hello' \
      -F text='body!' \
      -F attachment=@test.txt \
  </code></pre>
  
  <h2>Update</h2>
  
  <p>When I tried to execute the command after removing the multiple lines it returned this error:  </p>
  
  <pre><code>    curl -s --user 'api:key-xxxxxxxxxx' https://api.mailgun.net/v3/sandboxbxxxxxxxxxxxxx.mailgun.org/messages -F from='user  -F to='user  -F subject='Hello' -F text='body!' -F attachment=@test.txt 0&lt;email@live.com 1&gt;'
  The system cannot find the file specified.
  </code></pre>
  
  <p>PS: The attachment file is in the same directory</p>
  
  <p>Thanks!</p>