I'm doing my first steps on Customizing the TFS builds. I created an InvokeProcess that calls a batch file. I see in the log that the batch file is called, but I do not see that the batch file is executed. In the FileName I put the located and the name of the file (for example "C:\myBatch.bat". Just to see it working, I cal开发者_开发知识库led in the file name also "Notepad.exe" and also it did not work. What can be the problem?
Thanks
Specify the WorkingDirectory property for the Invoke Process Activity, If you have file path as "C:\myBatch.bat" then set WorkingDirectory as "c:\"
Also, you can enable the logging for Invoke Process Activity. Check here: https://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/02/23/logging-results-from-invokeprocess-in-a-vs2010-team-build.aspx
精彩评论