PDA

View Full Version : Stop Service



NewsArchive
02-04-2012, 03:12 AM
I know you can stop/start services with the command line 'NET STOP' and
'NET START' and you can stop/start services with the SB 'STOP/START
SERVICE' functions. What are the pros and cons of each please?

TIA

--
Darrel (Dee) Witham
Professional Data Services, Inc

NewsArchive
02-04-2012, 03:12 AM
If you want to know the result of the stoppage/starting, then it's
best to use something that will tell you. How would you know success
if you use commandline?

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
This post may self-destruct at any moment

NewsArchive
02-05-2012, 01:49 AM
What Jeff said. The SB functions give you more control. For example, you
can use the check for active service and stop service in a LOOP (e.g. 5
times), then give the service some time (e.g. 3 seconds) to terminate. If
it is still running after all this, inform the user.

Friedrich