Good day everyone, i'm hoping someone can help me with what most likely is a simple solution but i just can't seem to find it: 
I have a button with the code
this works fine.
My problem is that the LAN connection name is not always the same.
In this case the name is "Ethernet" but it could vary to, for example, "Local Area Connection" or to whatever the user names it.
How would i go about retrieving the actual name to be able to use it as a variable?
Thanx in advance.

I have a button with the code
Code:
result = CommandLine.Execute("netsh interface set interface Ethernet DISABLED", 0);
My problem is that the LAN connection name is not always the same.
In this case the name is "Ethernet" but it could vary to, for example, "Local Area Connection" or to whatever the user names it.
How would i go about retrieving the actual name to be able to use it as a variable?
Thanx in advance.
Comment