title: Batch file to move all subfolder files up then delete empty subfolders?
body: <p>I have a folder that contains many subfolders, each with different files in them:  </p>
  
  <pre><code>C:/folder/subfolder1/file1.jpg,
  C:/folder/subfolder2/file2.jpg,
  C:/folder/subfolder3/file3.jpg, 
  etc.
  </code></pre>
  
  <p>How can I create a batch file that moves the files in the subfolders to the folder, then deletes the empty subfolders. </p>
  
  <p>ie. After the bat file is run, the folder structure should be as follows:</p>
  
  <pre><code>C:/folder/file1.jpg
  C:/folder/file2.jpg
  C:/folder/file3.jpg 
  etc.
  </code></pre>