Software Development Network>> Visual C#>> Scheduled Tasks in Windows
Hi,
I want to be able to disable / enable my windows scheduled tasks by code.
How can i do it
You can stop or start windows scheduled, starting or stopping windows service associate to it, the code to do it.
The first add System.ServiceProcess to project references, the code are this:
using System.ServiceProcess;
servicios =(
{
servicio = (
}
Scheduled Tasks in Windows
RonaldLaeremans
You can stop or start windows scheduled, starting or stopping windows service associate to it, the code to do it.
The first add System.ServiceProcess to project references, the code are this:
using System.ServiceProcess;
int i; ServiceController[] servicios; ServiceController servicio;servicios =(
ServiceController[])ServiceController.GetServices("127.0.0.1"); for(i = 0; i <= servicios.Length - 1; i++){
if (servicios{
servicio = (
ServiceController)servicios}
}
hawaiian dude