hi
i need to make a system in .Net to access the service SDRSVC (Windows backup)
and to see when was the last backup done or when this service was running last time
or if there is any failure
i try this code
Dim services As ServiceController() = ServiceController.GetServices() Response.Write("List of running services : <BR>") For Each service As ServiceController In services If service.ServiceName = "SDRSVC" Then Response.Write(String.Format(" Service Name: {0} , status {1} <BR>", service.ServiceName, service.Status.ToString())) End If Next