
請問批處理如何提取多塊網(wǎng)卡情況下的網(wǎng)關(guān)地址(ipconfig)最后由 ultrasurf 于 -8-6 07:59例如: ipconfig 顯示的結(jié)果是:Ethernet adapter VMware Network Adapter VMnet8:Connection-specific DNS Suffix. :IP Address. . . . . . . . . . . . : 192.168.1.10Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . :192.168.1.1Ethernet adapter VMware Network Adapter VMnet1:Connection-specific DNS Suffix. :IP Address. . . . . . . . . . . . : 192.168.2.10Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . :192.168.2.1Ethernet adapter 本地連接:Connection-specific DNS Suffix. :IP Address. . . . . . . . . . . . : 192.168.3.10Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.3.1Ethernet adapter 無線網(wǎng)絡(luò)連接:Connection-specific DNS Suffix. :IP Address. . . . . . . . . . . . : 192.168.4.10Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.4.1現(xiàn)在希望提取出 本地連接 和 無線網(wǎng)絡(luò)連接 的網(wǎng)關(guān)地址(Default Gateway),不希望出現(xiàn) VMware Network Adapter VMnet8 和 VMware Network Adapter VMnet1 的網(wǎng)關(guān)地址, 請問如何寫bat呀。自己試了一下只寫得出提取最后一個(gè)的,謝謝!

