xcopy failing within TFSbuild
- by mattgcon
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 "$(DropLocation)\$(BuildNumber)\Debug\_PublishedWebsites\IPAMIntranet" "$(RemoteDeploySitePath)" /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.