开发者

can I detect the status of a scheduled task like I do with services using serviceController?

I am building a status page for my web app and want to have it show me the status of critical home grown windows services and scheduled tasks.

I have finished setting up the logic to monitor and report on the status of windows services using serviceController.

how do i do the same with mt scheduled 开发者_C百科tasks?


You can't directly, as you can with ServiceController. There is a Task Scheduler API, but no managed API for this. You'd need to use the COM API directly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜