|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『楼 主』:
怎样在开机的时候自动打开宽带连接?(已解决)
使用 LLM 解释/回答一下
本人使用的是电话线WAN微型端口(PPPOE)宽带连接。
每次开机上网都得双击那个宽带连接图标才能上网。
感觉比较麻烦。
找了一下相关批处理,
只找到了启动EXE程序的,
没找到能启动这个的。
请大家帮忙看看能用批处理解决这个问题吗?
解决方法:
经过众多热心朋友的帮助,
终于解决了这个问题。
有效代码如下:(redtek朋友提供)
“rasdial 宽带连接 你的帐号 你的密码”
在我的机器上只有这个有效,
欢迎大家继续测试其他朋友提供的代码。
Last edited by fastrun on 2006-12-14 at 01:13 PM ]
I am using a broadband connection via the telephone line WAN mini-port (PPPOE).
Every time I start up and go online, I have to double-click that broadband connection icon to get online.
It feels relatively cumbersome.
I looked for relevant batch scripts,
and only found ones that start EXE programs,
and didn't find one that can start this.
Please everyone help see if a batch script can solve this problem?
Solution:
After the help of many enthusiastic friends,
finally this problem was solved.
The effective code is as follows: (provided by friend redtek)
"rasdial 宽带连接 你的帐号 你的密码"
Only this was effective on my machine,
everyone is welcome to continue testing the codes provided by other friends.
Last edited by fastrun on 2006-12-14 at 01:13 PM ]
|
|
2006-12-14 23:04 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
|
2006-12-14 23:06 |
|
|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
我知道加到自启动,
问题是该加些什么东西呢?
小弟刚来,
请大家多多指教!
I know to add to the startup,
The question is what things should be added?
Little brother has just arrived,
Please give more advice!
|
|
2006-12-14 23:16 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
建立宽带连接快捷方式,把快捷方式放到启动组里
Create a shortcut for the broadband connection and place the shortcut in the startup group
|
|
2006-12-14 23:18 |
|
|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
还是不太明白
不好意思啊
Still not quite understand
Sorry about that
|
|
2006-12-14 23:22 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
这是路径
C:\Documents and Settings\Administrator\「开始」菜单\程序\启动
用户名根据自己机子实际情况定。
This is the path: C:\Documents and Settings\Administrator\「Start」Menu\Programs\Startup. The user name is determined according to the actual situation of your own computer.
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2006-12-14 23:28 |
|
|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
谢谢ccwan。
你的方法刚试过了,
可行。
不过好像只能打开宽带连接,
仍然需要点击确定才能连接上。
能不能用批处理或者脚本直接在开机的时候就打开宽带连接并连上去呢?
Thanks ccwan.
The method you tried just now works.
But it seems only the broadband connection can be opened,
Still need to click "OK" to connect.
Can we use batch processing or scripts to directly open the broadband connection and connect when booting?
|
|
2006-12-14 23:34 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
  『第 8 楼』:
使用 LLM 解释/回答一下
Rasdial pppoe 你宽带的帐号 你宽带的密码
把上面命令存到一个名为 XXX.BAT 文件内,然后将此文件放入6楼ccwan兄所述的“启动”里,一开机就拔号了:)
更详细的用法:
C:\WINDOWS>rasdial /?
用法:
rasdial entryname ]
rasdial /DISCONNECT
rasdial
命令已完成。
测试版本: Windows Server 2003
Last edited by redtek on 2006-12-14 at 10:48 AM ]
Rasdial pppoe Your broadband account Your broadband password
Save the above command into a file named XXX.BAT, and then put this file into the "Startup" mentioned by Brother ccwan on the 6th floor. Once the computer starts, it will dial up : )
More detailed usage:
C:\WINDOWS>rasdial /?
Usage:
rasdial entryname ]
rasdial /DISCONNECT
rasdial
The command completed.
Test version: Windows Server 2003
Last edited by redtek on 2006-12-14 at 10:48 AM ]
此帖被 +5 点积分 点击查看详情 评分人:【 ccwan 】 | 分数: +5 | 时间:2006-12-14 23:50 |
|
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-14 23:46 |
|
|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
谢谢楼上的朋友。
但是在我的机器上运行的时候提示错误:
远程访问错误 623 系统无法为这个连接找到电话簿项。
若需此错误的详细说明:
请在帮助中键入“hh netcfg.chm”
单击“疑难解答”,选择“错误信息”,然后键入 “ 623”
我使用的系统是XP+SP2,自己动手关闭了一些服务。
是不是和关闭的服务有关呢?
Thank you to the friend above.
But when running on my machine, an error is prompted:
Remote access error 623 The system cannot find the phone book entry for this connection.
For detailed explanation of this error:
Please type "hh netcfg.chm" in Help
Click "Troubleshooting", select "Error Information", then type "623"
The system I am using is XP + SP2, and I manually turned off some services.
Is it related to the services that were turned off?
|
|
2006-12-14 23:57 |
|
|
jmz573515
银牌会员
    
积分 1212
发帖 464
注册 2006-12-13
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
@echo off
start=RASDIAL "AccessRunner ADSL" bx8833345 bx8833345
把以上内容复制到记事本里,然后另存为SW.BAT(保存类型一定要选"所有文件"),之后只要双击SW.BAT就可以上网了.
注意:上边的"AccessRunner ADSL"拨号连接的名称,bx8833345这个是用户名,后边的bx8833345是密码,你要改成你自己的
@echo off
start=RASDIAL "AccessRunner ADSL" bx8833345 bx8833345
Copy the above content into Notepad, then save it as SW.BAT (make sure to select "All Files" for the save type). Then just double-click SW.BAT to go online.
Note: The above "AccessRunner ADSL" is the name of the dial-up connection, bx8833345 is the username, and the following bx8833345 is the password. You need to change it to your own
|
|
2006-12-15 00:01 |
|
|
youxi01
高级用户
   
积分 846
发帖 247
注册 2006-10-27 来自 湖南==》广东
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
用vbs脚本,可以做到"悄无声息"(没有CMD的黑框):
dim wsh
set wsh=WScript.CreateObject("WScript.Shell")
wsh.run "Rasdial pppoe 你宽带的帐号 你宽带的密码",false,1
将上述代码保存到Rasdial.vbs,放到启动项里就行了。
Using a VBS script, you can achieve "silent" (without the black CMD box):
dim wsh
set wsh=WScript.CreateObject("WScript.Shell")
wsh.run "Rasdial pppoe your broadband account your broadband password",false,1
Save the above code as Rasdial.vbs and put it in the startup folder.
|
|
2006-12-15 00:02 |
|
|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
谢谢10楼和11楼的两位朋友。
二位的我都试了一下,
10楼的没有任何提示,
也没有任何反应。
11楼的提示错误:
脚本:C:\Documents and Settings\fastrun\ 开始菜单\程序\启动\Rasdial.vbs
行:3
字符:18
错误:语句未结束
代码:800A0401
源:Microsoft VBScript编译器错误
Last edited by fastrun on 2010-3-22 at 15:26 ]
Thanks to the two friends on the 10th and 11th floors.
I tried both of yours.
The 10th floor had no prompts and no reaction.
The 11th floor had an error prompt:
Script: C:\Documents and Settings\fastrun\ Start Menu\Programs\Startup\Rasdial.vbs
Line: 3
Character: 18
Error: Statement not ended
Code: 800A0401
Source: Microsoft VBScript compilation error
Last edited by fastrun on 2010-3-22 at 15:26 ]
|
|
2006-12-15 00:18 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
贴出你的Rasdial.vbs脚本看看
Show me your Rasdial.vbs script
|
|
2006-12-15 00:25 |
|
|
NaturalJ0
银牌会员
    
积分 1181
发帖 533
注册 2006-8-14
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
设置自动连接就行了。
Just set up the automatic connection.
|
|
2006-12-15 00:27 |
|
|
fastrun
初级用户
 
积分 46
发帖 24
注册 2006-12-13
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
dim wsh
set wsh=WScript.CreateObject("WScript.Shell")
wsh.run "Rasdial pppoe hechpr000 13617234",false,1
dim wsh
set wsh=WScript.CreateObject("WScript.Shell")
wsh.run "Rasdial pppoe hechpr000 13617234",false,1
|
|
2006-12-15 00:28 |
|