title: Copy and Rename Files with batch file
body: <p>I have thousands of text files formatted something similar to <code>abcdefgh_20140430120000.txt</code></p>
  
  <p>I would like to copy those from one folder to another folder like </p>
  
  <pre><code>xcopy "Y:\FolderA" "C:\FolderB" 
  </code></pre>
  
  <p>However, I want to remove the time portion in the file name so that the text file would look like <code>abcdefgh_20140430.txt</code></p>
  
  <p>Can anyone help me with code to do so?</p>