LAN PING state button - Forum

Forum Navigation
You need to log in to create posts and topics.

LAN PING state button

is it possible to change button state from green to red if ping to some local address is fail?

@jurica

Since you posted this in the VisualNEOWin section, I am assuming that you are going to use the DOS command ping ... as described in this article ...

https://www.howtogeek.com/355664/how-to-use-ping-to-test-your-network/

If so, you can ...

- use the Run command to initiate the command
- specify a subroutine to be notified when the command/process is done
- have its response directed to a local file (ping blahblahblah > pingresult.txt)
- in the subroutine, you can do a FileRead of the pingresult.txt file
- parse the contents of the file to determine if the ping succeeded or not
- change the color/caption of a Text object to indicate success/failure

juricazg has reacted to this post.
juricazg

this will be for more advanced user level.