|
Answer» Hi there,
I wrote batch which enumerate all network interfaces on machine and list them on screen. I need list all IP addresses and netmasks assigned to particular interfaces. There are few ways, how to pull those INFORMATION from system:
1: ipconfig 2: netsh in ip SH AD [iface_name] 3: REG QUERY "HKLM\SYSTEM\ControlSet001\services\%GUID%\Parameters\Tcpip" /s | find "IPADDRESS"
Disadvantages of listed methods:
1: seems not to be easy detect, what IP is assigned to what iface 2: in w2k does not show dynamically assigned IPs 3: not possible in w2k. MULTIPLE IPs per interface is listed on one line separated by backslash, possible troubles with parsing.
what is you recomendation?? Do you have any other idea??
[email protected]
|