开发者

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

开发者 https://www.devze.com 2023-02-10 22:04 出处:网络
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 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

精彩评论

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