0

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 called in the file name also "Notepad.exe" and also it did not work. What can be the problem?

Thanks

Ariel
  • 1
  • 1

1 Answers1

0

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

Jehan33
  • 3,780
  • 2
  • 21
  • 16
  • Hi...It does not help to me...I set in the WorkingDIrectory for example "C:\" and in the file "C:\MyBatch.bat" without any result. – Ariel Jun 20 '11 at 12:53
  • 1
    @Maslow Here's the working link: https://blogs.blackmarble.co.uk/blogs/rfennell/post/2010/02/23/logging-results-from-invokeprocess-in-a-vs2010-team-build.aspx – Jehan33 Jan 28 '12 at 15:40