title: Batch: Create a list of folders and then copy multiple files/folders into all of them
body: <p>I am a CAD manager in need of some help. I am no programmer, but I have a very basic understanding of DOS commands so I thought I could use XCOPY to do this, but I don't know how.</p>
  
  <p>I have a folder, under which are hundreds of subfolders that change with time (each employee has one folder) so maintaining a manual listing (as I have been doing) is not easy.
  I also have a _TEMPLATE subfolder that contains several files and folders.</p>
  
  <p>I would like to copy the contents of the _TEMPLATE folder into all the other subfolders, overwriting all existing files and creating all non-existing folders.</p>
  
  <p>From what I've seen with some searching in here it seems to pretty easy to accomplish these two tasks (to create the list of folders and to copy into a list of folders) but I'm just too dumb to understand how to combine the two into one file :)</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>Well, I've found a PowerShell script that does what I need perfectly. Since I managed to run the PowerShell I guess my problem is solved :D</p>
  
  <pre><code>$folder = Get-Childitem -name -exclude *.*,_TEMPLATE
  foreach ($f in $folder)
      {xcopy "_TEMPLATE\*.*" "$f" /e /r /y }
  </code></pre>
  
  <p>Thanks for all the fish ;)</p>