I'm trying to make a batch program that fetches variables from base CMD commands. For example:
c:\Users> ipconfig
.....
IPv4 Address ....... 123.456.7.89
.....
Say I wanted to make a batch program that prints only the IP address on the screen such as:
@echo off
echo (IP Address Variable Here)
pause;
What would I need to do?
Appreciate your time.