title: TFS 2008 Build and deploy to Inetpub web folder
body: <p>I have TFS2008 and have a build running, however, I want to automate the deployment of the build folder and place the build into the inetpub folder it belongs to.</p>
  
  <p>I.E.:</p>
  
  <ol>
  <li>Run Build</li>
  <li>After Build, automatically place the new built solution into Inetpub/wwwroot/websitefolder</li>
  </ol>
  
  <p>I have tried xcopy, robocopy and synctoy 2.1 and I cannot get any of them to work.</p>
  
  <p>(xcopy use)</p>
  
  <pre><code>&lt;Exec Command="xcopy $(DropLocation)\$(BuildNumber)\Debug\_PublishedWebsites\IPAMIntranet C:\Inetpub\wwwroot\IPAMOnlineSystem.Test /E " /&gt;
  </code></pre>
  
  <p>(robocopy use)</p>
  
  <pre><code>&lt;Exec Command="ROBOCOPY $(DropLocation)\$(BuildNumber)\Debug\_PublishedWebsites\IPAMIntranet C:\Inetpub\wwwroot\IPAMOnlineSystem.Test /S /XJ /B /R:5" /&gt;
  </code></pre>
  
  <p>(synctoy 2.1 use)</p>
  
  <pre><code>&lt;Exec Command="SyncToyCmd.exe -RIPAMBuildProjectDeploy" /&gt;
  </code></pre>
  
  <p>Can anyone at all please help me with this dilemna?</p>
  
  <p>Thank you in advance</p>