之前用win10 做咗2個bat file,一個轉ip,一個轉DHCP,
DHCP : netsh interface ip set address "Local Network" dhcp
轉ip : netsh interface ip set address "Local Network" static 192.168.100.10 255.255.255.0
但在win11用唔到,有咩方法可以用返個 bat file
或者 powershell 要點做先可以好似 bat file 咁簡單快速修改IP呢 |