title: Adding XCopy command through Post Build Event in Visual Studio 2008 for multiple commands
body: <p>I wanted to add 2 simple XCOPY commands to a post build event for a class file in Visual Studio 2008. </p>
  
  <p>However, Visual Studio doesn't want to run the command unless I've either run the command once from a command line, OR copied the specified files to the target directory first. </p>
  
  <p>Is it possible to specify or suppress/default the /f flag without having to execute the commands first?</p>
  
  <pre><code>xcopy /y "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\TrainingProject\TrainingProject\bin\debug\TrainingProject.dll" "C:\inetpub\wwwroot\slxclient\bin\TrainingProject.dll"
  xcopy /y "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\TrainingProject\TrainingProject\bin\debug\TrainingProject.pdb" "C:\inetpub\wwwroot\slxclient\bin\TrainingProject.pdb" 
  </code></pre>
  
  <p>The PDB entry chokes if I have not already copied it manually.</p>
  
  <p>Thanks.</p>