InvokeProcess 自定义活动不调用

发布于 2024-11-16 07:42:49 字数 195 浏览 3 评论 0原文

我正在执行自定义 TFS 构建的第一步。我创建了一个调用批处理文件的 InvokeProcess。我在日志中看到调用了批处理文件,但没有看到批处理文件被执行。在 FileName 中,我输入了文件的位置和名称(例如“C:\myBatch.bat”)。 为了查看它的工作原理,我也将文件名命名为“Notepad.exe”,但它也不起作用。 可能是什么问题?

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少年亿悲伤 2024-11-23 07:42:49

指定调用进程活动的工作目录属性,如果文件路径为“C:\myBatch.bat”,则将工作目录设置为“c:\”

此外,您还可以启用调用进程活动的日志记录。检查这里:
https://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/02/23/logging-results-from-invokeprocess-in-a-vs2010-team-build.aspx< /a>

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文