from the devx page - the green remmed out sectionCode:' start/stop/pause/continue a service ' SERVICENAME is the internal name of the service ' COMMAND can be 0=Start, 1=Stop, 2=Pause, 3=Continue ' ' returns True if successful, False otherwise ' if any error, call Err.LastDLLError for more information
basically
to start
ServiceCommand "Schedule", 0
to stop
ServiceCommand "Schedule", 1
check http://support.microsoft.com/kb/189633
you can determine StartType for a service - <boot|system|auto|demand|disabled>
b/c if it is disabled, it can't be started on demand (manual)




Reply With Quote