title: How to control output file name in a batch file?
body: <p>I'm running a batch file to use FFMPEG to convert all the files with the *.MTS extension in a directory. </p>
  
  <pre><code>for %%A in (*.MTS) do ffmpeg -i "%%A" -vcodec copy -acodec pcm_s16le -ar 48000 -ac 2 "newfiles\%%A.mov"
  pause
  </code></pre>
  
  <p>The output files go to a directory called newfiles. The conversion takes place with no problem. The problem is that if the input is a file name.MTS the output is a file name.MTS.mov</p>
  
  <p>How can i change the batch file so that with an input of name.MTS the output is name.mov?</p>