xcopy failing within TFSbuild

Posted by mattgcon on Stack Overflow See other posts from Stack Overflow or by mattgcon
Published on 2010-04-30T15:17:54Z Indexed on 2010/05/06 5:38 UTC
Read the original article Hit count: 539

Filed under:
|
|

I am using TFS2008 and within my TFSBuild.proj file I have a target that call xcopy to copy the build to the production website location for automation. However I am receiving the following error when running the build:

Task "Exec" Command:  xcopy "\\test\TFSBuilds\Online System V2 Build to NETPUB_20100430.2\Debug\_PublishedWebsites\IPAMIntranet" "
    C:\\Inetpub\wwwroot\IPAMOnlineSystem\IPAMIntranet\IPAMIntranet
  " /E 

Parse Error 'C:\\Inetpub\wwwroot\IPAMOnlineSystem\IPAMIntranet\IPAMIntranet' is not recognized as an internal or external command, operable program or batch file.

  '" /E ' is not recognized as an internal or external command, operable program or batch file.

The following is my code line for the xcopy:

  <Target Name="AfterDropBuild">
<Exec Command="xcopy &quot;$(DropLocation)\$(BuildNumber)\Debug\_PublishedWebsites\IPAMIntranet&quot; &quot;$(RemoteDeploySitePath)&quot; /E " /> </Target>

I have even tried single quotes around the file locations and actual double quotes insteand of the " symbols.

Why is this happening, can anyone decipher this for me and help me correct this.

© Stack Overflow or respective owner

Related posts about xcopy

Related posts about tfsbuild