Last post Nov 05, 2008 03:35 PM by JeffreyABecker
Nov 05, 2008 09:30 AM|Hamishrock|LINK
I have written some code which is to stop a service from within a different service. It all compiles and runs, but the stop is not performed. The command "net stop the_report"! typed into a command window, does work.
Nov 05, 2008 10:03 AM|DkUltra|LINK
Have you tried right click and run your process as administrator ?
Hope this helps
Nov 05, 2008 10:26 AM|Hamishrock|LINK
I have placed the code in a new simple window's vb project and it works ok. How can I make the service with the code in run as an administrtor?
Nov 05, 2008 01:04 PM|DkUltra|LINK
For Services, there is a Log On tab and from that give the service administrator credentials
Nov 05, 2008 03:35 PM|JeffreyABecker|LINK
This would be better achieved using WMI.