title: Copy a list (txt) of files
body: <p>I've seen some scripts examples over SO, but none of them seems to provide examples of how to read filenames from a .txt list.</p>
  
  <p>This example is good, so as to copy all files from A to B folder</p>
  
  <pre><code>xcopy c:\olddir\*.java c:\newdir /D /E /Q /Y
  </code></pre>
  
  <p>But I need something like the next, where I can fill actually the source and destination folder:</p>
  
  <pre><code> @echo off
   set src_folder = c:\whatever\*.*
   set dst_folder = c:\foo
   xcopy /S/E/U %src_folder% %dst_folder%
  </code></pre>
  
  <p>And instead of <code>src_folder = c:\whatever\*.*</code>, those <code>*.*</code> need to be list of files read from a txt file.</p>
  
  <p>File-list.txt (example)</p>
  
  <pre><code>file1.pds
  filex.pbd
  blah1.xls
  </code></pre>
  
  <p>Could someone suggest me how to do it?</p>