![]() |
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-09-15 13:38 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS批处理 & 脚本技术(批处理室) » How to make a one-step到位 ADSL dial-up batch processing? |
| Printable Version 4,077 / 14 |
| Floor1 zrz000 | Posted 2006-10-06 21:03 |
| 初级用户 Posts 16 Credits 44 | |
|
Every time I set up the computer to create an ADSL dial-up connection, there are n steps of "Next". Is there a way to do it in one go without using third-party software?
|
|
| Floor2 zrz000 | Posted 2006-10-06 23:55 |
| 初级用户 Posts 16 Credits 44 | |
| Floor3 electronixtar | Posted 2006-10-08 05:38 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
%appdata%\Microsoft\Network\Connections\Pbk\rasphone.pbk
Just create a new connection casually and then observe this file |
|
| Floor4 lxmxn | Posted 2006-10-08 07:31 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Strange, why is there no "%appdata%\Microsoft\Network" directory in my system? dir /a doesn't show it~ My system is WIN-XP SP2~ |
|
| Floor5 electronixtar | Posted 2006-10-08 07:48 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Search for *.pbk files under C:
|
|
| Floor6 lxmxn | Posted 2006-10-08 09:45 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Oh, the result is out -- Originally, the value of my %appdata% environment variable is: No wonder it couldn't be found. Thanks to est for the guidance. echo :)>est Hehe |
|
| Floor7 esky | Posted 2007-05-23 12:24 |
| 初级用户 Posts 8 Credits 22 | |
|
Can you post the complete batch processing?
|
|
| Floor8 ttyp | Posted 2007-05-23 12:27 |
| 初级用户 Posts 84 Credits 180 | |
| Floor9 utem999 | Posted 2007-05-23 16:33 |
| 初级用户 Posts 54 Credits 135 | |
|
Learning
|
|
| Floor10 emote | Posted 2007-05-24 21:21 |
| 初级用户 Posts 41 Credits 114 | |
|
Here I want to ask whether the following two lines in rasphone.pbk represent the account and password entered during the creation of the dial-up. If so, is there a way to make a batch processing to add or change the account and password to rasphone.pbk (plaintext input, automatically encrypted by the system and stored in the rasphone.pbk file)
DialParamsUID=4162735 Guid=4119FE7646DE4B41BD52E8AB94EFEE67 Another question is, how to use batch processing to create a shortcut for the dial-up connection on the desktop? Hope to give the code, thank you! [ Last edited by emote on 2007-5-24 at 09:52 PM ] |
|
| Floor11 qq43142691 | Posted 2008-03-02 00:14 |
| 中级用户 Posts 152 Credits 326 | |
|
I also post one... It should be imitating VBS. Found online
Not allowed to upload. [ Last edited by qq43142691 on 2008-3-2 at 01:49 AM ] |
|
| Floor12 tvzml | Posted 2008-03-30 22:14 |
| 初级用户 Posts 67 Credits 157 | |
|
I wrote something that can solve the problem of ADSL being automatically created after restoring the C drive system, with detection of whether it's created.
@echo off set VPN_LAN=0 set adslpath="C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk" if exist %adslpath% findstr /c:"ADSL" %adslpath% ||set VPN_LAN=1 @echo %VPN_LAN% echo set WshShell = CreateObject("WScript.Shell") >VPN_phone.VBS if %VPN_LAN%==0 goto VPN_ADD echo WshShell.Run "Rasphone -a" >>VPN_phone.VBS echo WScript.Sleep 500 >>VPN_phone.VBS echo WshShell.SendKeys "%+R" >>VPN_phone.VBS echo WshShell.SendKeys "%+N" >>VPN_phone.VBS echo WScript.Sleep 100 >>VPN_phone.VBS echo WshShell.SendKeys "{BACKSPACE 10}" >>VPN_phone.VBS echo WshShell.SendKeys "ADSL" >>VPN_phone.VBS echo WScript.Sleep 500 >>VPN_phone.VBS echo WshShell.SendKeys "{ENTER}" >>VPN_phone.VBS echo WScript.Sleep 500 >>VPN_phone.VBS :VPN_ADD echo WshShell.Run "Rasphone -d ADSL" >>VPN_phone.VBS echo WScript.Sleep 500 >>VPN_phone.VBS echo WshShell.AppActivate "连接 ADSL" >>VPN_phone.VBS echo WshShell.SendKeys "{TAB}" >>VPN_phone.VBS echo WshShell.SendKeys "{TAB}" >>VPN_phone.VBS echo WshShell.SendKeys "{TAB}" >>VPN_phone.VBS echo WshShell.SendKeys "%+u" >>VPN_phone.VBS echo WScript.Sleep 100 >>VPN_phone.VBS echo WshShell.SendKeys "{BACKSPACE 10}" >>VPN_phone.VBS echo WScript.Sleep 100 >>VPN_phone.VBS echo WshShell.SendKeys "jxphayujh" >>VPN_phone.VBS echo WScript.Sleep 100 >>VPN_phone.VBS echo WshShell.SendKeys "{TAB}" >>VPN_phone.VBS echo WScript.Sleep 500 >>VPN_phone.VBS echo WshShell.SendKeys "{BACKSPACE 10}" >>VPN_phone.VBS echo WScript.Sleep 500 >>VPN_phone.VBS echo WshShell.SendKeys "密码" >>VPN_phone.VBS echo WshShell.SendKeys "{TAB}" >>VPN_phone.VBS echo WScript.Sleep 100 >>VPN_phone.VBS echo WshShell.SendKeys "%+c" >>VPN_phone.VBS start VPN_phone.VBS |
|
| Floor13 MZFR | Posted 2008-09-25 21:09 |
| 新手上路 Posts 3 Credits 6 | |
|
I want to create a BAT for "Virtual Private Network Connection"
What should be changed in combination with the above statement? Tried N times and it didn't work!!! Hope the expert gives pointers |
|
| Floor14 MZFR | Posted 2008-09-26 03:26 |
| 新手上路 Posts 3 Credits 6 | |
| Floor15 avtion | Posted 2008-11-22 23:26 |
| 新手上路 Posts 4 Credits 4 | |
|
If you want to create a dial-up connection for a modem (MODEM), like the 16300 - type dial-up connection, how to do it?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |