批处理程序
来源:互联网 发布:java视频教学网站 编辑:程序博客网 时间:2024/06/07 13:13
这是我在【学校、寝室、的几个ip不行手动改,就用一个批处理程序运行来操作,很方便
@echo off
echo 请选择使用IP:echo 1、电大IP
echo 2、校园网IP
echo 3、寝室
set /p num=请输入你的选择:
if %num% ==1 goto one
if %num% ==2 goto two
if %num% ==3 goto three
:one
netsh int ip set address "本地连接" static 192.168.4.123 255.255.255.0 192.168.4.1 1
netsh int ip set dns "本地连接" static 202.102.224.68 primary
netsh interface ip add dns "本地连接" 8.8.8.8 index=2
echo IP设置完成 &pause >nul
pause
:two
netsh int ip set address "本地连接" static 172.18.25.234 255.255.0.0 172.18.0.1 1
netsh int ip set dns "本地连接" static 202.196.96.131 primary
netsh interface ip add dns "本地连接" 8.8.8.8 index=2
echo IP设置完成 &pause >nul
:three
netsh int ip set address "本地连接" static 192.168.18.102 255.255.255.0 192.168.18.254 1
netsh int ip set dns "本地连接" static 202.196.96.131 primary
netsh interface ip add dns "本地连接" 8.8.8.8 index=3
echo IP设置完成 &pause >nul
pause
- 批处理程序
- 批处理程序where
- 使用批处理启动程序
- windows 批处理程序语法
- window 批处理程序
- 批处理程序学习
- 自动关机批处理程序
- java程序做成批处理
- Java调用批处理程序
- 备份文件之批处理程序
- windows批处理程序
- 批处理调用执行程序
- 经典批处理程序
- Windows 批处理启动程序
- java批处理程序分析
- 一个批处理的扫描程序
- 批处理程序中的“多线程”处理
- 免疫autorun病毒批处理程序
- 程序员需要有多懒 ?- cocos2d-x 数学函数、常用宏粗整理
- Java开发中的23种设计模式
- DotNetBar教程(二)
- < meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />详解
- Support NAND devices which NAND ID is not fixed-length
- 批处理程序
- poj1157 - LITTLE SHOP OF FLOWERS
- 海明码的差错检测
- Android开发之handler
- Android利用selector设置按钮不同状态下的背景图片
- .net 防止重复提交 .
- Use command line arguments in Node.js
- JAVA异步调用再度改进
- 涂鸦撤销与重做的功能实现