windows set ip with bat script
#netsh interface ipv4 show interfaces level=verbose
#REM set ADAPTER_NAME="WLAN"
ergoip = 120;
for x in range(0, 64):
print(f"set IP_ADDRESS_{x}=\"202.114.4.{(ergoip + x)}\"");
print(f"REM 202.114.4.{(ergoip + x)}")
print(f"netsh interface ipv4 add address name=%InterfaceIndex% addr=%IP_ADDRESS_{x}% mask=%SUBNET_MASK_2%")
标签:
加入收藏