China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 02:22
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to automatically open the broadband connection when booting up? (Solved) View 11,226 Replies 46
Floor 16 Posted 2006-12-15 00:35 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by NaturalJ0 at 2006-12-12 11:27:
Just set up automatic connection.

Well, there should be an automatic connection option in the broadband connection.
Floor 17 Posted 2006-12-15 00:36 ·  中国 吉林 长春 联通
初级用户
Credits 46
Posts 24
Joined 2006-12-13 23:06
19-year member
UID 73425
Gender Male
Status Offline
Originally posted by NaturalJ0 at 2006-12-14 11:27 AM:
Just set up automatic connection.

How to set it up?
Can't find the place.
Floor 18 Posted 2006-12-15 00:38 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by fastrun at 2006-12-14 11:28:
dim wsh
set wsh=WScript.CreateObject("WScript.Shell")
wsh.run "Rasdial pppoe hechpr000 13617234",false,1

It should be separated by a single space, let's try again
Floor 19 Posted 2006-12-15 00:39 ·  中国 河北 廊坊 三河市 移动
初级用户
Credits 41
Posts 19
Joined 2006-12-15 00:10
19-year member
UID 73540
Gender Male
Status Offline
Originally posted by zh159 at 2006-12-14 11:35 AM:

Well, the broadband connection should have an automatic connection option.



If all has to be done by Windows, why do we study batch processing?
Floor 20 Posted 2006-12-15 00:41 ·  中国 吉林 长春 联通
初级用户
Credits 46
Posts 24
Joined 2006-12-13 23:06
19-year member
UID 73425
Gender Male
Status Offline
Originally posted by zh159 at 2006-12-14 11:38 AM:

It should be separated by a single space. Try again.


This time there is no error prompt, but still no response, same as the above batch file.
Floor 21 Posted 2006-12-15 00:42 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by Primalchaos at 2006-12-14 11:39:


Why bother studying batch processing if everything has to be done by Windows?

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 ]
Floor 22 Posted 2006-12-15 00:46 ·  中国 吉林 长春 联通
初级用户
Credits 46
Posts 24
Joined 2006-12-13 23:06
19-year member
UID 73425
Gender Male
Status Offline
Originally posted by zh159 at 2006-12-14 11:42 AM:

Why use batch processing if automatic dialing is possible?!

Batch processing is not all-powerful; it requires command support

[ Last edited by zh159 on 2006-12-14 at 11:43 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
:(
Floor 23 Posted 2006-12-15 00:49 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
If there is no such thing in "Properties", then it's gone.
Make a VBS to send the Enter command to execute the connection
Floor 24 Posted 2006-12-15 00:55 ·  中国 吉林 长春 联通
初级用户
Credits 46
Posts 24
Joined 2006-12-13 23:06
19-year member
UID 73425
Gender Male
Status Offline
Originally posted by zh159 at 2006-12-14 11:49 AM:
If there is no such thing in "Properties", then it is gone
Create a VBS to send the enter command to execute the connection



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!
Floor 25 Posted 2006-12-15 00:57 ·  中国 河北 廊坊 三河市 移动
初级用户
Credits 41
Posts 19
Joined 2006-12-15 00:10
19-year member
UID 73540
Gender Male
Status Offline
Originally posted by zh159 at 2006-12-14 11:42 AM:

Why use batch processing if automatic dialing is possible?!

Batch processing is not all-powerful; it requires command support

[ Last edited by zh159 on 2006-12-14 at 11:43 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.
Floor 26 Posted 2006-12-15 01:03 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Hehe, actually not angry, ^_^ (all using Purple Crystal Pinyin ^_^)

Just saw that recently there are often people riding bicycles wanting to fly ^_^

dim wsh
set wsh=WScript.CreateObject("WScript.Shell")
wsh.run "自己修改宽带连接快捷方式"
While Wsh.AppActivate ("连接 宽带连接")=false
WScript.Sleep 500
Wend
Wsh.SendKeys "^c"


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
Floor 27 Posted 2006-12-15 01:06 ·  中国 北京 东城区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
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:

  

  C:\WINDOWS>rasdial redtek 100065012345 mypassword
  Connecting to REDTEK...
  Verifying username and password...
  Registering your computer on the network...
  Connected to REDTEK.
  The command completed successfully.



  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 :)
Recent Ratings for This Post ( 3 in total) Click for details
RaterScoreTime
fastrun +2 2006-12-15 01:22
ccwan +5 2006-12-15 01:25
zh159 +5 2006-12-15 01:41
Attachments
1.gif
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 28 Posted 2006-12-15 01:12 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
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.
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 29 Posted 2006-12-15 01:21 ·  中国 吉林 长春 联通
初级用户
Credits 46
Posts 24
Joined 2006-12-13 23:06
19-year member
UID 73425
Gender Male
Status Offline
Originally posted by redtek at 2006-12-14 12:06 PM:
The implementation steps are as follows: (I have tested it, and the dial-up was successful under Windows Server 2003)


) First, create a broadband dial-up in the "Network Connections" of Windows.

  (Detailed content..


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
Floor 30 Posted 2006-12-15 01:27 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
Brother redtek is always so enthusiastic!
But don't show off too much, all the points today are given to you ^_^
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Forum Jump: