📄 sol10-5.vbs
字号:
Const WMICConst = "winmgmts:{impersonationLevel=impersonate}!"
Dim objWMINetConfig, nResult
'get the instance for the first adapater
Set objWMINetConfig = _
GetObject(WMICConst & "Win32_NetworkAdapterConfiguration.Index=1")
'assign two static IP addresses to the adapter
nResult=objWMINetConfig.EnableStatic(Array("192.168.1.2","192.168.1.3"), _
Array("255.255.255.0", "255.255.255.0"))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -