batch file - MSBuild.exe <Exec Command="call test.bat" /> fails with Cannot Find Path Specified -
I have a .proj file (build.proj) that I call using the .bat (build.bat) file Doing through the order window.
build.bat:
% SystemRoot% \ Microsoft.NET \ Framework \ v3.5 \ MSBuild.exe projects \ build.proj / fl1 / flp1: logfile = build.bat It runs all the way through build.proj unless it tries to call any other .bat file.
Here is the row in build.proj, where it says the .bat file (test.bat):
& lt; Exec command = "call $ (batchir) \" Test.bat />
$ (batchdir) is defined at the top of build.proj and is equivalent to ".. batch"
In the console output I can see that this is batch file trying to call: call .. \ batch \ test.bat "system can not find the specified path"
test.bat fixed
Directory structure:
- / MyProject
- build.bat
- / project
- / batch
- test.bat
/ Li>
$ Try using full path to test.bat in) Variables.
It looks like it is related to ..
% SystemRoot% \ Microsoft.NET \ Framework \ v3.5 \ MSBuild.exe
or / MyProjectate /build.bat
, none of which is a wish. E a .. ..batch
directory.
Comments
Post a Comment