title: Copy and rename XLSX file using batch script
body: <p>I have many XLSX files that I will need to copy to a new location and rename. The Excel files appear to be copied to the new location, but when I open them, I keep getting the "found unreadable content" error message, and all the data is gone.</p>
  
  <p>I use an asterisk to find the file, and then I want to rename it so that it doesn't have the date string.</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>set OrigLocn=C:\OldLocation\
  
  set NewLocn=C:\NewLocation\
  
  copy "%OrigLocn%S5820-003-terms-sg*" "%NewLocn%S5820-003-terms-sg.xlsx"
  copy "%OrigLocn%S5921-293-terms-addp*" "%NewLocn%S5921-293-terms-addp.xlsx"
  copy "%OrigLocn%S5921-293-terms-sg*" "%NewLocn%S5921-293-terms-sg.xlsx"
  copy "%OrigLocn%S5921-349-terms-addp*" "%NewLocn%S5921-349-terms-addp.xlsx"
  </code></pre>