我想提取IP地址的最后一位
比如我用ipconfig 命令得到以下信息:
Windows IP Configuration
Ethernet adapter 本地连接 3:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.114
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.254
我想把里面的114或者是192.168.0.114输出到一个文件里.
比如我用ipconfig 命令得到以下信息:
Windows IP Configuration
Ethernet adapter 本地连接 3:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.114
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.254
我想把里面的114或者是192.168.0.114输出到一个文件里.
