Monitoring Ethernet connection status

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
marco.deepak
Posts: 6
Joined: Fri Oct 02, 2020 10:24 am

Monitoring Ethernet connection status

Post by marco.deepak » Mon Oct 12, 2020 10:33 am

Hi all,

I have a question for you.

Is there any way or any stack that can help me check the connection status specific to my ethernet port?.

The aim is to create a "LED" symbol on my screen that changes to green color when the ETH connection to my host is active and to red color when connection is down.

Any tip?

Thanks

M.

AxWald
Posts: 463
Joined: Thu Mar 06, 2014 2:57 pm

Re: Monitoring Ethernet connection status

Post by AxWald » Mon Oct 12, 2020 1:27 pm

Hi,

you may try one of these:

Code: Select all

put shell("ipconfig /all")
put shell("ipconfig")
Both give different results depending on your network status.

Have fun!
Livecode programming until the cat hits the fan ...

marco.deepak
Posts: 6
Joined: Fri Oct 02, 2020 10:24 am

Re: Monitoring Ethernet connection status

Post by marco.deepak » Mon Oct 12, 2020 4:48 pm

Thank for the tip!.

I managed by using the following:

Code: Select all

put shell("netsh interface show interface")
Works like a charm

Post Reply

Return to “Windows”