title: Windows script to delete and copy file to multiple directories
body: <p>Scenario:</p>
  
  <p>There are about 150 directories all with very similar path names, but one folder in that path differs between each entry. Examples below</p>
  
  <pre><code>d:\TSProfiles\coetzeed.TEST.V2\Desktop\
  d:\TSProfiles\ronaldb.TEST.V2\Desktop\
  d:\TSProfiles\mcondaldc.TEST.V2\Desktop\
  </code></pre>
  
  <p>I want to do the following on all those directories, but somehow account for those different folder names in each entry, without having to add all those directories into the script.</p>
  
  <pre><code>del d:\TSProfiles\coetzeed.TEST.V2\Desktop\accounts.exe   (deletes the old accounts.exe)
  Copy d:\newdesktop\accounts.exe  d:\TSProfiles\coetzeed.TEST.V2\Desktop\  (copies the new accounts.exe to the destination folder
  </code></pre>
  
  <p>)</p>