title: Copy Directories with SSIS
body: <p>I am using SSIS with Visual Studio 2012. </p>
  
  <p>I am using variables to make folders and folders within folders.</p>
  
  <p>The parent folder is static <strong>VarFolderPath</strong> = c:\Source\test\ </p>
  
  <p>the first subdirectory within it is dynamic based on yyyymm. I use the following expression to make this folder stores in the variable VarFolderName.</p>
  
  <pre><code>@[User::VarFolderPath]+RIGHT("0" + (DT_STR, 4, 1252) DATEPART("yy" , GETDATE()), 4) +  (DT_STR, 2, 1252) DATEPART("mm" , GETDATE())
  </code></pre>
  
  <p>Within <strong>VarFolderName</strong> I then make four other folders CLI, Day3, INF, PRI. That is all working</p>
  
  <p><img src="https://i.stack.imgur.com/ron2E.jpg" alt="Make Folders"></p>
  
  <p>I then want to copy CLI, INF, and PRI within the Day3 folder. I want two versions of CLI, INF and PRI. Oned irectly in VarFolderName, and another in Day3. I could make more variables to accomplish this, but since I already made the directories I was hoping to copy them. However using File System Task > Copy Directory does not copy folders, it copies all files within folders.</p>
  
  <p>Thus other than adding three additional variables is there a way to leverage the directories I have already made (CLI,INF, PRI) and place copies of them in Day3 shown as numbers 5,6,7 below.</p>
  
  <ul>
  <li><p>The end goal</p>
  
  <ol>
  <li>VarFolderName\CLI</li>
  <li>VarFolderName\INF</li>
  <li>VarFolderName\PRI</li>
  <li><p>VarFolderName\Day3</p></li>
  <li><p>VarFolderName\Day3\CLI </p></li>
  <li>VarFolderName\Day3\INF</li>
  <li>VarFolderName\Day3\PRI</li>
  </ol></li>
  </ul>