::特点:添加了自动获取 网络连接 代码,无需手动设置; hG2WxYk
@echo off hG2WxYk
title PPPoE自动连接 hG2WxYk
set /p user=请输入宽带用户名: hG2WxYk
set /p pass=请输入宽带密码: hG2WxYk
set "NIC_flag=Ethernet" hG2WxYk
for /f "tokens=1,2,3,* delims=: " %%i in ('ipconfig /all') do ( hG2WxYk
if "%%i"=="%NIC_flag%" set NIC_name=%%k) hG2WxYk
Rem '/*=============拨号============*/ hG2WxYk
rasdial %NIC_name% %user% %pass% hG2WxYk
pause>nul