![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-10 16:56 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » How to automatically open the broadband connection when booting up? (Solved) |
| Printable Version 11,488 / 46 |
| Floor1 fastrun | Posted 2006-12-14 23:04 |
| 初级用户 Posts 24 Credits 46 | |
|
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: [ Last edited by fastrun on 2006-12-14 at 01:13 PM ] |
|
| Floor2 ccwan | Posted 2006-12-14 23:06 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
| Floor3 fastrun | Posted 2006-12-14 23:16 |
| 初级用户 Posts 24 Credits 46 | |
|
I know to add to the startup,
The question is what things should be added? Little brother has just arrived, Please give more advice! |
|
| Floor4 zh159 | Posted 2006-12-14 23:18 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
Create a shortcut for the broadband connection and place the shortcut in the startup group
|
|
| Floor5 fastrun | Posted 2006-12-14 23:22 |
| 初级用户 Posts 24 Credits 46 | |
|
Still not quite understand
Sorry about that |
|
| Floor6 ccwan | Posted 2006-12-14 23:28 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
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.
|
|
| Floor7 fastrun | Posted 2006-12-14 23:34 |
| 初级用户 Posts 24 Credits 46 | |
|
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? |
|
| Floor8 redtek | Posted 2006-12-14 23:46 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
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: Test version: Windows Server 2003 [ Last edited by redtek on 2006-12-14 at 10:48 AM ] |
|
| Floor9 fastrun | Posted 2006-12-14 23:57 |
| 初级用户 Posts 24 Credits 46 | |
|
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? |
|
| Floor10 jmz573515 | Posted 2006-12-15 00:01 |
| 银牌会员 Posts 464 Credits 1,212 | |
|
@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 |
|
| Floor11 youxi01 | Posted 2006-12-15 00:02 |
| 高级用户 Posts 247 Credits 846 From 湖南==》广东 | |
|
Using a VBS script, you can achieve "silent" (without the black CMD box):
Save the above code as Rasdial.vbs and put it in the startup folder. |
|
| Floor12 fastrun | Posted 2006-12-15 00:18 |
| 初级用户 Posts 24 Credits 46 | |
|
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 ] |
|
| Floor13 zh159 | Posted 2006-12-15 00:25 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
Show me your Rasdial.vbs script
|
|
| Floor14 NaturalJ0 | Posted 2006-12-15 00:27 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
Just set up the automatic connection.
|
|
| Floor15 fastrun | Posted 2006-12-15 00:28 |
| 初级用户 Posts 24 Credits 46 | |
|
dim wsh
set wsh=WScript.CreateObject("WScript.Shell") wsh.run "Rasdial pppoe hechpr000 13617234",false,1 |
|
| 1 2 3 4 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |