Last post Jan 08, 2008 12:59 PM by feio
Jan 08, 2008 10:15 AM|shapper|LINK
I have the following code:
<MakeDir Directories="$(OutputPath)\B" />
<Copy SourceFiles="$(OutputPath)\A\*.*" DestinationFolder="$(OutputPath)\B" />
<RemoveDir Directories="$(OutputPath)\A" />
I get the following error:
"Unable to copy file ".\Debug\\A\*.*" to ".\Debug\\B\*.*". Illegal characters in path"
Does anyone knows what is wrong?
I can't find the problem.
Jan 08, 2008 10:32 AMemail@example.com|LINK
Double slashes. $(outputPath) includes the trailing slash and you add a second one.
Jan 08, 2008 12:49 PM|shapper|LINK
I tried and it still does not work.
In fact most of the docs I saw it includes the double slash. Then I tried the following ( changed $(OutputPath) to $(WDTargetDir) ):
<MakeDir Directories="$(WDTargetDir)B" />
<Copy SourceFiles="$(WDTargetDir)A\*.*" DestinationFolder="$(WDTargetDir)B" />
I keep having an error but now this seems a bug. The error is:
Unable to copy file "C:\MyProject\Debug\A\*.*" to "C:\MyProject\Debug\B\*.*".
Illegal characters in path.
See the destination folder. It also includes *.*. Isn't this strange?
Jan 08, 2008 12:59 PM|feio|LINK
I've just had a similar problem, and I've just solved it like this:
Good luck! [;)]