title: Use Dos commands to copy file and preserve date in file name
body: <p>I'm having trouble trying to copy and rename a file using only dos commands. I have a file of the format <code>myfile20130218</code> and want to copy and rename it to <code>some_other_file_20130218</code>.</p>
  
  <p>I know I can use <code>copy source dest</code> but I'm having trouble with how to isolate the date and preserve it. I cannot guarantee that he date will be today's date so that is ruled out, the source file will always be the same name.</p>
  
  <p>I can run either a series of commands or a batch script, but thing that that I am currently having trouble with, is after I find a match that I need to copy, using <code>myfile????????</code>, how can I now get those file names to pull the dates off them?</p>
  
  <p>EDIT: for clarification I will be looking at files in a known directory, as above, I will know the format of the file name, and will only be checking a specific directory for it. The process that checks the directory is a ConnectDirect file watcher, so when a file is found matching <code>myfile20130218</code> I can fire off some commands, but don't know how to check the directory and get the name of the file present.</p>