J
Jacobus Terhorst
Using C#:
I tried:
ServiceController me = new ServiceController(this.ServiceName);
me.Stop();
it raises an exception: Cannot find Service
I also tried:
Process.Start("net.exe", "stop " + this.ServiceName);
That did work either.
from DOS:
net stop ServiveName
works.
Any suggestions welcome.
Jacobus Terhorst
I tried:
ServiceController me = new ServiceController(this.ServiceName);
me.Stop();
it raises an exception: Cannot find Service
I also tried:
Process.Start("net.exe", "stop " + this.ServiceName);
That did work either.
from DOS:
net stop ServiveName
works.
Any suggestions welcome.
Jacobus Terhorst