get ip using batch file code example Example: how to display an ip in a batch file ipconfig | find /i "IPv4"