[olug] Unix Tip: GET YOUR IP-ADDRESS

William E. Kempf wekempf at cox.net
Fri Mar 21 15:30:33 UTC 2003


David Walker said:
> ipconfig or winipcfg
>
> but to my knowledge getting your IP address from within a script (batch
> file  or vbscript) is not this simple.

Why not?  I prefer jscript or even better, python, but in all three this
is fairly trivial.  Call ipconfig/winipcfg and parse out the important
information.

Windows may not come with the "power users tools" by default... but they
are certainly available.

-- 
William E. Kempf




More information about the OLUG mailing list