How to retrieve Ethernet adapter name in Windows 8.1 batch script
问题 I'm looking to pull the Ethernet adapter name out of ipconfig to use in a batch script which will create a static ip to that adapter name using netsh. Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : foo.bar.com IPv4 Address. . . . . . . . . . . : 10.0.0.123 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.0.0.456 What I am trying to do is pull out Ethernet0 and use that in the following netsh command (net_city and net_lab are inputted by