title: Saving multiple files through xcopy in a batch file
body: <p>When I use the following code in command prompt, it works fine. But when I use the same code in a batch file, nothing happens. My batch file simply consists of:</p>
  
  <pre><code>for %f in (D:\flexcube1,D:\flexcube2,D:\flexcube3) do xcopy %f D:\o\ /e  
  </code></pre>
  
  <p>but it does not work. I don't understand it and I have to use a batch file to copy multiple files. Any help would be really appreciated.</p>