Start and stop a service

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<font size=3><span style="font-family:Verdana Can anyone tell me how to start and stop a service using Visual Basic 2008 Express?<br style="font-family:Verdana <br style="font-family:Verdana <span style="font-family:Verdana I specifically need to write a small application that will start and stop the spooler service. In other words, the command line equivalent of:<br style="font-family:Verdana <br style="font-family:Verdana <span style="font-weight:bold;font-family:Verdana net stop spooler
<span style="font-family:Verdana    and<span style="font-weight:bold;font-family:Verdana <br style="font-weight:bold;font-family:Verdana <span style="font-weight:bold;font-family:Verdana net start spooler<br style="font-family:Verdana <br style="font-family:Verdana <span style="font-family:Verdana TIA</font>



View the full article
 
Back
Top