Monitoring Ethernet connection status

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
marco.deepak
Posts: 11
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: 578
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!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!

marco.deepak
Posts: 11
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”