title: command batch file curl upload
body: <p>I have to upload files using curl. 
  I can upload single or multiple file using file name, but i want to uplaod all files in a filder with *.csv mask. How i can upload it. as i read on one of the post saying, curl doesn't support wildcards.</p>
  
  <pre><code>ForFiles /m *.csv /c "cmd /c curl.exe -u "username:passowrd" -ssl --cacert "cacert.pem" -F "pfile=@stasticsData.csv" -F "profileKey=001" https://somewebsite.com/api/api-upload.php &gt;&gt; output.txt
  </code></pre>
  
  <p>If i can use same ForFiles with following, I can get file name in @file</p>
  
  <pre><code>ForFiles /m *.csv /c "cmd /c echo @file
  </code></pre>
  
  <p>I tried combining, it deson't work, plz help</p>
  
  <pre><code>ForFiles /m *.csv /c "cmd /c curl.exe -u "username:passowrd" -ssl --cacert "cacert.pem" -F "pfile=@file" -F "profileKey=001" https://somewebsite.com/api/api-upload.php &gt;&gt; output.txt
  </code></pre>