Click here to Skip to main content
15,867,998 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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.
Posted

1 solution

see this link you may get idea...
http://www.csharp-examples.net/restart-windows-service/[^]
 
Share this answer
 
Comments
Ami_Modi 28-Aug-14 7:16am    
I don't want to start\stop windows services, I want to start\stop exe\processes which we see in Task manager in windows server
vangapally Naveen Kumar 28-Aug-14 7:35am    
to start a exe service
System.Diagnostics.Process.Start("XXX.exe");
Ami_Modi 28-Aug-14 7:42am    
I dont think this will start exe/process which is on task manager on windows server

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900