Solved!! Thats it, I am specifying the solution with the following command: msbuild /p:Configuration=Debug /p:Platform="Any CPU" Test.sln Finally the solution was easy, just add double quotes to the copy command, the problem was that when at the beginning I tried that the same problem occurred again but with another project with a similar name, so I got them mixed and thought it was not the solution, I am sorry for bothering you. copy "$(TargetPath)" "$(SolutionDir)..\CustomFolder\" Thank you very much for your help.
El martes, 21 de agosto de 2012 16:25:52 UTC+2, slide escribió: > How are you specifying your build? Are you passing an sln file to msbuild? > If not, I am not sure msbuild will set the SolutionDir variable. > > Sent from my Windows Phone > ------------------------------ > From: nietzsche44 > Sent: 8/21/2012 7:03 AM > To: jenkins...@googlegroups.com <javascript:> > Subject: Re: Relative path running a windows batch > > Sorry slide I wasn't aware of that possibility, the problem is that I have > not Visual Studio installed in the server. > > David I am specifying the command in Visual Studio (the server downloads > the code from the repository) in the tab Build Events, Post-Build event > command line textbox. > > Thank you very much >