Assigning IP from Batch Script
问题 With the below code I am getting an error "Invalid interface LAN: specified". This code works in Win7, however, does NOT working in windows XP. I suspect it has something to do with the "!adapterName!" conflicting within XP. I utilize this script to obtain the NIC Name in case it changes in the future some how and would like to keep this scheme. Any ideas how I can continue with such script in an XP environment? :: Set primary and alternate DNS for IPv4 @ECHO OFF for /f "tokens=* delims=0" %