; ---------------------------------------------------------
; 网络配置,直连或Openwrt
; 直连 Ctrl + Shift + Alt + d
!+^d::
{
Run, *RunAs %ComSpec% /c netsh interface ip set address name="以太网" source=static addr=192.168.31.3 mask=255.255.255.0 gateway=192.168.31.1 1,,hide
Run, *RunAs %ComSpec% /c netsh interface ip set dns name="以太网" source=static addr=192.168.31.1,,hide
return
}
; Openwrt Ctrl + Shift + Alt + s
!+^s::
{
Run, *RunAs %ComSpec% /c netsh interface ip set address name="以太网" source=static addr=192.168.31.3 mask=255.255.255.0 gateway=192.168.31.11 1,,hide
Run, *RunAs %ComSpec% /c netsh interface ip set dns name="以太网" source=static addr=192.168.31.11,,hide
return
}
最后修改:2022 年 05 月 09 日
© 允许规范转载