从asp.net页面启动Windows服务器中的停止计划任务 [英] Start\stop scheduled task in windows server from asp.net page

查看:77
本文介绍了从asp.net页面启动Windows服务器中的停止计划任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从ASP.NET代码启动\stop已设置Windows计划任务?我在Windows Server 2008 r2中安排的任务很少。他们按照预定的时间运行。但是我需要在用户需要的时候从ASP.NET网页手动运行一些任务。因此,除了在预定时间运行的任务之外,我还希望在ASP.NET Web应用程序中随时为用户提供start\stop。

解决方案

看到这个链接你可能会有所了解......

http:// www。 csharp-examples.net/restart-windows-service/ [ ^ ]

Is it possible to start\stop already set windows scheduled task from ASP.NET code? I have few tasks scheduled in windows server 2008 r2. They run as per their scheduled time. But I need to run few tasks manually from ASP.NET web page whenever user wants. So in addition to the tasks running at their scheduled time, I want to give user the facility to start\stop at any time from ASP.NET web application.

解决方案

see this link you may get idea...
http://www.csharp-examples.net/restart-windows-service/[^]


这篇关于从asp.net页面启动Windows服务器中的停止计划任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆