As part of my TFS 2010 team, I am trying to copy a configuration file from a network location to the output folder where the assembly is going.
Using xcopy as the task of the call process, I successfully got all the EXCEPT work that I want to rename the file as part of the copy. The problem is that if you specify a different destination file name, XCOPY will ask if the destination is a file or directory, for example.
XCOPY \\networkshare\configs\live.config \\networkshare\release\server.exe.config /R /Y
leads to the fact that XCOPY asks me to press F if server.exe.config is a file or D if it is a directory. XCOPY does not seem to have a way to suppress this behavior. I tried using the basic COPY command, but Team Build just says that it does not recognize the COPY command.
Is there a way to easily rename a file as part of Team Build or use a different command line tool for this?
Greetings
source share