title: Batch Programming: Moving Files to Folders Based on Date Modified
body: <p>Thanks for visiting. My question: I receive daily files that are stored as .csv's, typically with the following format: DEVICE_DEVICENumber_DateID. I'd like to move these files into their respective monthly folders (ie 201401) based on the Date portion of the DateID. The DateID is written as the date first followed by a unique device ID (ex YYYYMMDDUNIQUEID - 2014010110). </p>
  
  <p>If I create folders like the one mentioned above (i.e. 201401, 201402, 201403, etc.), is there a simple way to pull a portion of the string to match the folder that I want to direct the file to?</p>
  
  <p>Thanks for your help!</p>
  
  <p>Calbruin</p>
  
  <p>Typical filename:</p>
  
  <p>GO.YO_WTR_SOO5_PT_20140102110.csv</p>