Question for batch experts: a DOS batch file problem ●●●●●●●●
I want to run a batch file on a schedule. When I run ipconfig, it looks like this:
Windows IP Configuration
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 218.29.153.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 218.29.153.254
I only want to output 218.29.153.103 into the text file ipconfig.txt and save it as a log!
What should I do?
Because the IP is assigned by DHCP, the line with 218.29.153.103 sometimes changes (because sometimes it disconnects and then reconnects).
The ideal effect for the ipconfig.txt log would be like this:
218.29.153.103
218.29.153.122
218.29.153.4
218.29.153.55
.
.
.
Please help, experts!
I want to run a batch file on a schedule. When I run ipconfig, it looks like this:
Windows IP Configuration
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 218.29.153.103
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 218.29.153.254
I only want to output 218.29.153.103 into the text file ipconfig.txt and save it as a log!
What should I do?
Because the IP is assigned by DHCP, the line with 218.29.153.103 sometimes changes (because sometimes it disconnects and then reconnects).
The ideal effect for the ipconfig.txt log would be like this:
218.29.153.103
218.29.153.122
218.29.153.4
218.29.153.55
.
.
.
Please help, experts!


