title: Batch Script: Quicker ECHO output to a csv file in a FOR loop?
body: <p>I wrote a script that replaces the semicolon delimiter in a text file to commas, but it also puts quotes around the text of the 9th column since the 9th column contains commas. When I output to the new text file it process very slow, takes maybe 4-5 minutes, the text file that it is reading from is 50MB. Is there faster way or more efficient way to do this? Here is my FOR loop:</p>
  
  <pre><code>FOR /f "usebackq tokens=1-9* delims=;" %%a IN ("%FILENAME%") DO (
  SET C10=%%j
  ECHO(%%a,%%b,%%c,%%d,%%e,%%f,%%g,%%h,"%%i",!C10:;=,! &gt;&gt; "%MYPATH%\Filename %MMDDYYYY%.csv")
  </code></pre>
  
  <p>or should I just learn python.....</p>
  
  <p>Thank you.</p>