title: Batch file for moving files to specified folder
body: <p>I need to move files in several different folders into a common folder using a simple batch file</p>
  
  <p>I have a folder called Export into which the files need to go . FileList contains a list of all the files to be moved saved into a text file files.txt. 
  Used the below code but does not work. . </p>
  
  <pre><code>set FIILELIST=C:\List\files.txt
  set FILESPATH=C:\
  set DESTPATH=C:\Export\
  
  for /f %%X in (%FIILELIST%) do call :COPY_FILES "%%X"
  goto :eof
  
  :COPY_FILES
  for /r %FILESPATH% %%I in (%~1) do echo xcopy /qvs "%%I" "%DESTPATH%%%~pnxI"
  </code></pre>