title: batch job for auto folder creation with random name
body: <p>I am new to scripting, can some please assist me,</p>
  
  <p>I would like to create a batch file that</p>
  
  <p>1-        Looks at the first 8 characters in the file name, creates and moves those files to new folder with first 8 characters as folder name.</p>
  
  <p>2-        Then looks at folder created in step 1 for next four series of character (9,10,11,12)and create and move to another subfolder with next 4 characters as folder name.</p>
  
  <p>3-        Then looks at folder created in step 2, for extension of every file and create and move to a new folder with extension as folder name.</p>
  
  <p>For example, I have files that look like this</p>
  
  <p>ABCEFGHI0703xyz.pdf</p>
  
  <p>STUVWXYZ0805xyz.pptx</p>
  
  <p>Move to folder</p>
  
  <p>ABCEFGHI\0703\PDF</p>
  
  <p>STUVWXYZ\0805\PPTX</p>
  
  <p>Keeping in mind first 8 characters are random, next 4 character are year and month, and 9 types of extensions.</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Abdul </p>