title: Audio batch trim beginning and end using Sox
body: <p>How do I merge the two, so multiple files can be processed, with each file trimmed 15 seconds from beginning, and 15 seconds at the end:</p>
  
  <pre><code>@echo off
  cd E:\trim\multiplefiles
  mkdir trimmed
  
  rem trims 15 seconds from end of each file, and creates a snipped file in 
  rem trimmed folder
  
  FOR %%A IN (*.wav) DO sox "%%A" "trimmed\%%~nxA" reverse trim 15 reverse
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@echo off
  cd E:\trim\multiplefiles
  mkdir trimmed
  
  rem trims 15 seconds from beginning of each file, and creates a snipped file in rem trimmed folder
  
  FOR %%A IN (*.wav) DO sox "%%A" "trimmed\%%~nxA" trim 15
  </code></pre>