Re: Relative path running a windows batch

2012-08-22 Thread nietzsche44
: 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

Re: Relative path running a windows batch

2012-08-21 Thread nietzsche44
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

Relative path running a windows batch

2012-08-20 Thread nietzsche44
Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy $(TargetPath) $(SolutionDir)..\CustomFolder\ But the copy fails because of the relative path ..\ I've made some tests executing a simple Windows batch command using

Re: Relative path running a windows batch

2012-08-20 Thread Slide
What happens if you build using devenv.exe instead of msbuild.exe? Thanks, slide On Mon, Aug 20, 2012 at 7:27 AM, nietzsche44 nietzsch...@gmail.com wrote: Hi, I am using Jenkins to build a C# project that includes a postbuild event that copies a file using a relative path: copy

Re: Relative path running a windows batch

2012-08-20 Thread nietzsche44
Hi slide, Thanks for the answer. I am not sure about what you mean using devenv to build, as far as I know, using devenv in a command line opens the project/solution in a visual studio window. Thank you very much On Monday, August 20, 2012 4:58:34 PM UTC+2, slide wrote: What happens if you

Re: Relative path running a windows batch

2012-08-20 Thread Slide
Please see http://msdn.microsoft.com/en-us/library/b20w810z(v=vs.80).aspx On Mon, Aug 20, 2012 at 8:35 AM, nietzsche44 nietzsch...@gmail.com wrote: Hi slide, Thanks for the answer. I am not sure about what you mean using devenv to build, as far as I know, using devenv in a command line opens

Re: Relative path running a windows batch

2012-08-20 Thread Qazwart
Are you using parentheses or curly braces? Depending where your specifying this, the environment variable need curly braces or even surrounded by percent signs. Where are you specifying this copy command? -- David Weintraub da...@weintraub.name On Aug 20, 2012, at 10:27 AM, nietzsche44