title: DOS command to move all files in subdirectories one level up
body: <p>I have a folder with a lot of sub folders with one or more files in each. I am trying to write a batch file that moves all those files to C:\songs (for example). Any help? I have already tried </p>
  
  <pre><code>C:\&gt;FOR /R C:\Test %i IN (*) DO MOVE %i C:\Songs
  </code></pre>
  
  <p>The folders Test and songs exist, but I get an error saying </p>
  
  <pre><code>%i was unexpected at this time. 
  </code></pre>
  
  <p>What am I doing wrong? </p>