精品文档windows7 cmd命令改变IP地址、 DNS和代理设置
改变IP地址设置
@echo off netsh interface ipv4 set address "无线网络连接" static 192.168.100.200 255.255.255.0
192.168.100.1netsh interface ipv4 set dns name="无线网络连接" source=static addr=8.8.4.4netsh interfac e ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo ------------------------------------------------------------------------------echo ---------------------------------------------------------------------------------echo -----------------------------
改为DHPC 自动获取设置
@echo offf netsh interface ipv4 set address name="无线网络连接" source=dhcp netsh interface ipv4 set dns name="无线网络连接" source=dhcp echo ------------------------------
开启IE代理服务器设置
@echo off title 自动设置代理服务器echo正在设置代理服务器„„reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 1 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer /d"192.168.100.100:808" /f reg add"HKCUSoftwareMicrosoftWindow sCurrentVersionInternet Settings" /v ProxyOverride /t REG_SZ/d"" /f
echo正在刷新设置„„ipconfig/flushdns
精品文档
精品文档
关闭IE代理服务器设置:
@echo off title 自动清除IE代理echo正在清空代理服务器设置„„reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWO RD/d 0/f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer /d"" /f reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyOverride /t REG_SZ/d 0/f
echo代理服务器设置已经清空echo正在刷新设置„„ipconfig/flushdns
批处理自动选择网络设置全文
注复制到记事本文件中别存为后缀改为”.bat”文件。在win7系统中运行时会提示 “请求的操作需要提升为<作为管理员运行>”只需要在此bat文件上右击“以管理员身份运行”即可。
全文如下
@echo off color 1f title windows 7多网络环境自动切换管理echo.echo ********************************************echo *** windows 7双网络环寺自动切换管理 ***echo *** 作者王明洪MSN:kswmh@hotmail.com ***echo ********************************************echo *** 设置IP参数,设置IE代理 ***echo.echo.goto me nus
:me nus echo.echo请选择:echo.echo 1切换到家庭代理网络echo.echo 2切换到学校自动获取IP地址网络。echo.
精品文档
精品文档echo 3放弃设备退出echo.set/p select=请输入菜单对应数字后回车:if/i "%se le ct%"=="1"goto home if/i "%select%"=="2"goto school if/i "%select%"=="3"exit goto me nus
:ho me cls netsh interface ip reset "无线网络连接"echo设置IP. . .设置网关. . . . .设置子网netsh interface ipv4 set address "无线网络连接" static 192.168.100.200
255.255.255.0192.168.100.1echo设置DNS. . .netsh interface ipv4 set dns name="无线网络连接"source=static addr=8.8.4.4netsh interface ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo设置IE代理. . .echo正在设置代理服务器„„reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnab le/t REG_DWO RD/d 1 /f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyS e rver/d"192.168.100.100:808" /f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d"" /f echo正在刷新设置„„ipconfig/flushdns goto exit
:school cls echo设置学校网络自动IP地址.netsh interface ipv4 set address name="无线网络连接" source=dhcp echo设置DNS. . .netsh interface ipv4 set dns name="无线网络连接"source=dhcp echo正在清除代理服务器设置„„echo正在清空代理服务器设置„„reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyEnab le/t REG_DWO RD/d 0/f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyS e rver/d"" /f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d 0/f echo代理服务器设置已经清空echo正在刷新设置„„
精品文档
精品文档ipconfig/flushdns goto exit
:exit cls echo.cho.echo.echo.echo.echo************恭喜!网络设置以完成。echo.echo.echo.echo.echo.echo.pause e x it
设置有线与无线同时连接网络route de lete 0.0.0.0route-p add 10.0.0.0 mask 255.0.0.0172.16.64.1 metric 1route-p add 0.0.0.0 mask 0.0.0.0192.168.160.1 metric 25精品文档
今天父亲节我们有没有陪伴家人一起吃个饭,还是打个电话问候一下。前一段时间同学将网站账户给我说可以有空更新点信息确保他在没有时间的时候还能保持网站有一定的更新内容。不过,他这个网站之前采用的主题也不知道来源哪里,总之各种不合适,文件中很多都是他多年来手工修改的主题拼接的,并非完全适应WordPress已有的函数,有些函数还不兼容最新的PHP版本,于是每次出现问题都要去排查。于是和他商量后,就抽时间把...
快云科技: 12.12特惠推出全场VPS 7折购 续费同价 年付仅不到五折公司介绍:快云科技是成立于2020年的新进主机商,持有IDC/ICP等证件资质齐全主营产品有:香港弹性云服务器,美国vps和日本vps,香港物理机,国内高防物理机以及美国日本高防物理机产品特色:全配置均20M带宽,架构采用KVM虚拟化技术,全盘SSD硬盘,RAID10阵列, 国内回程三网CN2 GIA,平均延迟50ms以下。...
华纳云双11钜惠出海:CN2海外物理服务器终身价688元/月,香港/美国机房,免费送20G DDos防御,50M CN2或100M国际带宽可选,(文内附带测评)华纳云作为一家专业的全球数据中心基础服务提供商,总部在香港,拥有香港政府颁发的商业登记证明,APNIC 和 ARIN 会员单位。主营香港服务器、美国服务器、香港/美国OpenStack云服务器、香港高防物理服务器、美国高防服务器、香港高防I...