title: Using xcopy in a batch file with %programfiles%
body: <p>I'm trying to use a batch file to help setup a build project.
  As part of that process I need to copy a lot of files from a temporary directory:
  %temp%\wcu to a new directory in the %programfiles% directory.</p>
  
  <p>I am using the following command:</p>
  
  <pre><code>xcopy %temp%\wcu\dotnetframework\*.* %programfiles%\"Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1" /S
  </code></pre>
  
  <p>Of course the problem is that %programfiles% equates to "C:\Program Files" with a space and so xcopy throws a wobbly.</p>
  
  <p>Any ideas on how to get around this?</p>