@echo off
cls echo 您的选择为:自动获取IP…… rem eth //设置网卡名称,如"本地连接" set eth="本地连接" echo ---------------------------------------- echo 正在设置IP地址…… netsh interface ip set address "%eth%" source=dhcp echo 正在设置首选DNS服务器…… netsh interface ip set dns "%eth%" source=dhcp nbtstat -R ipconfig /flushdns cls exit |
|
来自: Richard0210 > 《BAT程序》