title: Automatically run the curl for every entry in a text document
body: <p>I am trying to eliminate entering each individual choice manually and have the curl read from a text document and run the curl automatically for every choice listed in the document. This is the basic curl I have at the moment that can run for one single manually entered choice.</p>
  
  <pre><code>echo AccountNumber to set 
  set /p AccNum =
  
  curl -X PATCH http://localhost:3232/docs/AccountNumbers/%AccNum% -d 
  "@StateCountyCurl.txt" -w "\n\n"
  
  pause
  </code></pre>
  
  <p>This will prompt the user to enter each individual AccNum and will run the curl based on the data in the StateCountyCurl.txt file. I have another file called AccountNumbers.txt which has all the account numbers in it. I would like to modify this curl statement so that it reads all account numbers one by one and runs the curl without me having to enter each number manually every time. Thank you for your help and suggestions. </p>
  
  <p>I am looking for something like (not sure of the syntax)</p>
  
  <pre><code>echo AccountNumber to set 
  set /p AccNum = "AccountNumbers.txt" //run for every number in this text doc.
  
  curl -X PATCH http://localhost:3232/docs/AccountNumbers/%AccNum% -d 
  "@StateCountyCurl.txt" -w "\n\n"
  </code></pre>
  
  <p>pause</p>