Thanks for that info! Learn something new everyday here..
>PMFJI but ipconfig does also work on NT. It's winipcfg that doesn't work in NT/W2K.
>
>"ipconfig" will give you the basic info while "ipconfig /all" will give you:
>
>
> Host Name . . . . . . . . . . . . :
> Primary DNS Suffix . . . . . . . :
> Node Type . . . . . . . . . . . . :
> IP Routing Enabled. . . . . . . . :
> WINS Proxy Enabled. . . . . . . . :
> DNS Suffix Search List. . . . . . :
>
>
>Ethernet adapter Local Area Connection:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . :
> Physical Address. . . . . . . . . :
> DHCP Enabled. . . . . . . . . . . :
> Autoconfiguration Enabled . . . . :
> IP Address. . . . . . . . . . . . :
> Subnet Mask . . . . . . . . . . . :
> Default Gateway . . . . . . . . . :
> DHCP Server . . . . . . . . . . . :
> DNS Servers . . . . . . . . . . . :
>
> Lease Obtained. . . . . . . . . . :
> Lease Expires . . . . . . . . . . :
>
>
>As well as the info for all your other connections if used (dial-up, multi-NIC)
>
>Obviously depending what he wants to do, it may be better as you noted, to use API's
>
>
>- Brian
>
>
>>looks like ipconfig works on win2k, but, probably not on NT - that's why I was using netstat /r. What are the API functions you would use to do this?
>>>That works - but it's a bit messy.. and winnt/2k doesnt use ipconfig.. API functions are the solution - through C style calls to DLL's..if you really need this stuff - let me know, i'll put an example together for you..
>>>
>>>cheers