11-25-2013 10:06 AM
Hi,
How programmaticlly get status of "A" Windows service?
Using "System Exec VI" was referred as a way to start/stop a service with proper command line text.
Is this VI the only solution? if yes, some detail how to ?
or any alternative?
David
Solved! Go to Solution.
11-25-2013 10:38 AM
You can do it with .net
The example here lists all the services and its status. You can refer to msdn documentation for more details.
11-25-2013 11:06 AM - edited 11-25-2013 11:10 AM
sc query servicename
Output example:
NOME_DO_SERVI€O: fax
TIPO : 10 WIN32_OWN_PROCESS
ESTADO : 1 STOPPED
CàDIGO_DE_SAÖDA_DO_WIN32 : 0 (0x0)
CàDIGO_DE_SAÖDA_DO_SERVI€O : 0 (0x0)
PONTO_DE_VERIFICAۂO : 0x0
AGUARDAR_DICA : 0x0