zoukankan
html css js c++ java
设置IP的VBS
今天整理资料,看到一段同事上半年写的VBS。上半年有大量服务器要求换IP地址,由于是半夜,做个AT就省事多了。
strComputer
=
"
.
"
Set
objWMIService
=
GetObject
(
"
winmgmts:\\
"
&
strComputer
&
"
\root\cimv2
"
)
Set
colNetAdapters
=
objWMIService.ExecQuery _
(
"
Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE
"
)
strIPAddress
=
Array
(
"
218.5
.
"
)
'
IP Addr.
strSubnetMask
=
Array
(
"
255.255.255.224
"
)
'
子网掩码
strGateway
=
Array
(
"
218.5
"
)
'
网关
strGatewayMetric
=
Array
(
1
)
For
Each
objNetAdapter in colNetAdapters
errEnable
=
objNetAdapter.EnableStatic(strIPAddress, strSubnetMask)
errGateways
=
objNetAdapter.SetGateways(strGateway, strGatewaymetric)
Next
查看全文
相关阅读:
Android活动条(actionbar)使用具体解释(一)
Cocos2d-x之LayerMultiplex的使用
使用UIWebView载入本地或远程server上的网页
Ubuntu 13.10上用户怎样获得root权限,用户怎样获得永久root权限,假设配置root登录
android-async-http框架
android开发——自己定义相机(Camera)开发总结
Android中measure过程、WRAP_CONTENT详解以及 xml布局文件解析流程浅析
Android 中自定义控件和属性(attr.xml,declare-styleable,TypedArray)的方法和使用
Android 数字签名学习笔记
Android 4.4从图库选择图片,获取图片路径并裁剪
原文地址:https://www.cnblogs.com/LCX/p/629249.html
最新文章
jquery cookie 用法
ORA-12154: TNS:could not resolve the connect identifier specified
根据匹配词个数排序
Linux_System2
Selinux是什么?
sort用法
mybatsi中文乱码问题
SSM-CRUD入门项目——环境搭建
JavaWeb基础——JSON
bootstrap入门
热门文章
SSM整合思路
SpringMVC拓展——利用maven构建springMVC项目
maven第二天——重要概念与其它操作
maven第一天——入门与基本概念
Java基础——类加载机制
springMVC第二天——高级参数绑定与其它特性
el表达式具体解释
大北农偷窃商业机密团伙到底想干什么?
Nginx下的https配置
设计模式之Memento模式
Copyright © 2011-2022 走看看