![]() |
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-11-11 17:33 |
47,815 topics / 349,930 posts / today 0 new / 48,291 members |
| DOS批处理 & 脚本技术(批处理室) » How to automatically open the broadband connection when booting up? (Solved) |
| Printable Version 12,402 / 46 |
| Floor16 zh159 | Posted 2006-12-15 00:35 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by NaturalJ0 at 2006-12-12 11:27: Well, there should be an automatic connection option in the broadband connection. |
|
| Floor17 fastrun | Posted 2006-12-15 00:36 |
| 初级用户 Posts 24 Credits 46 | |
Originally posted by NaturalJ0 at 2006-12-14 11:27 AM: How to set it up? Can't find the place. |
|
| Floor18 zh159 | Posted 2006-12-15 00:38 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by fastrun at 2006-12-14 11:28: It should be separated by a single space, let's try again |
|
| Floor19 Primalchaos | Posted 2006-12-15 00:39 |
| 初级用户 Posts 19 Credits 41 | |
Originally posted by zh159 at 2006-12-14 11:35 AM: If all has to be done by Windows, why do we study batch processing? |
|
| Floor20 fastrun | Posted 2006-12-15 00:41 |
| 初级用户 Posts 24 Credits 46 | |
Originally posted by zh159 at 2006-12-14 11:38 AM: This time there is no error prompt, but still no response, same as the above batch file. |
|
| Floor21 zh159 | Posted 2006-12-15 00:42 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by Primalchaos at 2006-12-14 11:39: Why use batch processing if automatic dialing is possible?! Batch processing isn't all-powerful; it requires command support [ Last edited by zh159 on 2006-12-14 at 11:43 AM ] |
|
| Floor22 fastrun | Posted 2006-12-15 00:46 |
| 初级用户 Posts 24 Credits 46 | |
Originally posted by zh159 at 2006-12-14 11:42 AM: Don't let's be hostile to each other We can only improve together by raising questions and solving them But I've searched all relevant places related to this connection Even deleted the original connection and created a new one but still couldn't find it :( |
|
| Floor23 zh159 | Posted 2006-12-15 00:49 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
If there is no such thing in "Properties", then it's gone.
Make a VBS to send the Enter command to execute the connection |
|
| Floor24 fastrun | Posted 2006-12-15 00:55 |
| 初级用户 Posts 24 Credits 46 | |
Originally posted by zh159 at 2006-12-14 11:49 AM: There is indeed no such thing in Properties. I thought of this method at the very beginning. But I don't know batch processing, so I have to rely on that KeyPress Macro Creator, but it doesn't work every time. Now I have thought of a slightly simpler way, which is to add the shortcut of the broadband connection to the startup group, and then use VBS or batch processing to execute an enter command, so this should be no problem. Could someone help me write this command? Thanks a lot! |
|
| Floor25 Primalchaos | Posted 2006-12-15 00:57 |
| 初级用户 Posts 19 Credits 41 | |
Originally posted by zh159 at 2006-12-14 11:42 AM: This gentleman is quite angry! ^_^ Indeed, batch processing is not all-powerful. We are just more deeply understanding the function and usage skills of each command through continuously solving problems, achieving the accumulation and sublimation of knowledge, rather than pursuing to use it to complete some bizarre ideas, some boring or even malicious ideas. For one thing or one need, if Windows can do it, I also want to know if batch processing or DOS can do it. This is just a way of seeking knowledge. |
|
| Floor26 zh159 | Posted 2006-12-15 01:03 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
Hehe, actually not angry, ^_^ (all using Purple Crystal Pinyin ^_^)
Just saw that recently there are often people riding bicycles wanting to fly ^_^ While Wsh.AppActivate ("连接 宽带连接")=false Activate the "Connect Broadband Connection" window WScript.Sleep 500 Delay Wend If the "Connect Broadband Connection" window is not activated, then return and continue to activate the "Connect Broadband Connection" window |
|
| Floor27 redtek | Posted 2006-12-15 01:06 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
The implementation steps are as follows: (I have tested it and it succeeded in dialing under Windows Server 2003)
) First, create a broadband dial-up in the "Network Connections" of Windows. (Detailed content is shown in the picture) The name of this dialer I set is: redtek You use your name. ) Execute the following command in the command line: (Assume the broadband is in an unconnected state before executing the command) The execution process is as follows: Then, the broadband is dialed and connected, and you can surf the Internet (this post is dialed to surf the Internet like this) Explanation of the following command: RASDISL The name of the dialer we just created in "Network Connections" Broadband login name Broadband password The above has been experimentally verified, and it is no longer a barrier to put the above command into the startup of Windows :) Attachments 1.gif (8.85 KiB) |
|
| Floor28 redtek | Posted 2006-12-15 01:12 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Note: The name I gave to the newly created dialer above is: redtek
Note: This is not a shortcut (and no need for a shortcut), it's directly established, just in case of unexpected situations. |
|
| Floor29 fastrun | Posted 2006-12-15 01:21 |
| 初级用户 Posts 24 Credits 46 | |
Originally posted by redtek at 2006-12-14 12:06 PM: Test passed Thanks to friends for their help The China DOS Union is really a warm-hearted place! Thanks again to all the warm-hearted friends |
|
| Floor30 ccwan | Posted 2006-12-15 01:27 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
Brother redtek is always so enthusiastic!
But don't show off too much, all the points today are given to you ^_^ |
|
| Prev 1 2 3 4 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |