LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically subnet

is there a way to programmatically retrieve TCP/IP infomration...IP address, subnet mask, gateway. Basically all the info that you get with the ipconfig command, but without using the Command screen?
0 Kudos
Message 1 of 4
(3,205 Views)
You might want to check Microsoft's web site to see if there's a winapi function that can be called but I've always just used the System Exec function to run ipconfig. The results are returned in the function's standard output and then it's just a matter of parsing the string for the info you want.
Message 2 of 4
(3,205 Views)
Yes, apart from the annoying pop up and close of the black window it works fine. There is quite a bit of parsing to do and diagnosing if there is more than one controller. Setting the computers IP address, subnet, and DNS entry is also something I would like to do. I'll check the web site...do you know how to do this?

Thanks
0 Kudos
Message 3 of 4
(3,205 Views)
You can avoid the window pop-up by wiring a True constant to the run minimized input. I'm attaching a VI in LV7 that uses system exec to programtically set the IP Address, mask, and gateway. A coworker wrote this. It only works on Win2K and XP though.

I don't have any real good tips on searching the MS web site except doing a search of both Support Home and MSDN (Microsoft Developer Network).
0 Kudos
Message 4 of 4
(3,205 Views)