cancel
Showing results for 
Search instead for 
Did you mean: 

network connection name

SOLVED
Solved!

network connection name

Message contains an attachment

Hi

 

Is it possible to get the name of network connection icon(refer to the attached pic) through program based on ip address?

Pls let me know if there is a way.

 

Thank you.

6 REPLIES 6
PhillipBrooks
Active Participant

Re: network connection name

Message contains a hyperlink

I think the .NET example VI located here will give you what you want...

 

http://decibel.ni.com/content/docs/DOC-1089

Knight of NI

Re: network connection name

You should also be able to get this information by using System Exec and issuing the command "ipconfig /all" and then parse the output. Not sure which is better for Vista, though, which is what you seem to be running (and for this, my condolences Smiley Very Happy).
F._Schubert
Active Participant

Re: network connection name

I would guess, that info is stored in the registry. You can try searching for the name to find the keys.

 

Felix 

PhillipBrooks
Active Participant
Solution

Re: network connection name

Message contains an attachment

Here is a more comprehensive VI to get all named adapters, and the ip addresses assigned to each...

 

 

Re: network connection name

Hi guyz

 

Bravo! Bravo! I did not expect such an elegant solution. Thank u very much!

 

Btw, another question: How can I change IP of a certain IP using dotnet in Labview? 

rolfk
Knight of NI

Re: network connection name

Message contains a hyperlink

rdtttttttttttttt wrote:

Hi

 

Is it possible to get the name of network connection icon(refer to the attached pic) through program based on ip address?

Pls let me know if there is a way.

 

Thank you.


Another solution which does not invoke the entire .Net resource hog, would be posted in this thread.

 

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390