cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to get the result of windows service running status on thingworx?

HemapradhapN
4-Participant

How to get the result of windows service running status on thingworx?

I am trying to show the windows services status (running or stopped) on thingworx? can someone please suggest how it can be done?

2 REPLIES 2

Hello,

 

For that you'll need to write a server-side extension (take a look at ThingWorx Extension SDK). In this extension you will use Java's Runtime.exec() to execute command line "sc query", parse its result and wrap it in an INFOTABLE.

 

Regards,
Constantine

@HemapradhapN I quickly hacked a working example, feel free to reuse it: https://github.com/vilia-fr/twxscext

It requires Windows SDK, please read description carefully before using it.

Top Tags