Alaska Software Inc. - Xbase++ and ServiceController()
Username: Password:
AuthorTopic: Xbase++ and ServiceController()
Chris ChambersXbase++ and ServiceController()
on Sat, 10 Feb 2018 17:17:09 -0800
Hi Folks,

Is anyone using this outstanding function ServiceController() and if so, 
is there an elegant way of setting the description of a service other 
than using something like this:-

* 
------------------------------------------------------------------------------------ 
*
Procedure PreServicedesc(cService)  This does work perfectly well.
* 
------------------------------------------------------------------------------------ 
*
Local cParams := 'description '+cService+' '+'"Controlling service to 
Manage the Incaservice"'
Local cCommand := 'SC.exe'
RunShell( cParams, "sc.exe", .F., .F.)
Return
* 
------------------------------------------------------------------------------------ 
*
The standard SC.exe is a standard windows function and does many queries 
and functions for any services you have running on your system. As you 
may already know. However I would like to be able use something like 
Servicecontroller or some other Xbase++ function to do this other than 
RunShell.

Regards

Chris C