Chinaunix首页 | 论坛 | 博客
  • 博客访问: 14250
  • 博文数量: 20
  • 博客积分: 820
  • 博客等级: 准尉
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-23 22:22
文章分类
文章存档

2009年(20)

我的朋友
最近访客

分类:

2009-07-08 16:45:47

新公司是用的静态IP地址,而家里使用的是动态获取地址。每天要换IP很不方便,两天后,我搞了个两批处理解决它。1、建一个文本,文件名为office.bat@echo offset str1="本地连接"set oknum=192.168.120.238set oknum2=192.168.120.1set netnum=255.255.255.0echo 正在执行... %ip%netsh interface ip set address %str1% static %oknum% %netnum% %oknum2% 1 netsh interface ip set dns %str1% static 202.96.104.152、建一个文本,文件名为home.batnetsh interface ip set address "本地连接" dhcpnetsh interface ip set dns "本地连接...
阅读(241) | 评论(0) | 转发(0) |
0

上一篇:at和crontab

下一篇:决定恢复写BLOG

给主人留下些什么吧!~~