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 <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 $(TargetPath) $(SolutionDir)..\CustomFolder\ > > But the copy fails because of the relative path ..\ > I've made some tests executing a simple Windows batch command using relative > path to copy a file, for example, and it doesn't work either. > > Could you give me a hint to solve this?? > > Thanx