title: Removing date and time stamp from a string with spaces in batch
body: <p>I am making a program that automatically backs up files, stores up to a maximum of five of them, and has an option to restore any of the five files. When the files are backed up, it adds a date and time stamp in the format of YYYYMMDD_HHMMSS_filename.ext. In order to restore the file, it is necessary to first cut out the date stamp.
  The method I am currently using to cut the date stamp off of the beginning of the file is as follows.</p>
  
  <pre><code>set VAR=%VAR:~16%
  echo %VAR%
  </code></pre>
  
  <p>The problem being, if the backed up file is called "20120825_140343_file name.txt", the above method will only return "file," omitting anything after the space. The spaces in the file names need to be preserved for them to be recognized by the program using them. </p>
  
  <p>tl;dr I need to cut the string 20120825_140343_file name.txt into just "file name.txt", but my method just returns "file."</p>
  
  <p>If delimiters or something would help I could separate the date stamp and file name with a different character, I.E. 20120825_140343-file-name.txt</p>