|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『楼 主』:
[求助]如何让批处理中实现ADSL连接
使用 LLM 解释/回答一下
─────────────────── 版务记录 ────────────────────
执行:lxmxn
原标题:批处理大虾请进
说明:因标题表述过于模糊,不便于论坛的搜索和管理,请在三日内修改标题。
提示:修改标题请在当前帖的右下脚点 编辑,修改完毕之后按 编辑帖子 即可。
处罚:因属论坛新人,暂时不予处罚;若三日之后尚未修改标题,将扣除2点积分,
以示惩罚,并由版主强制修改标题。请点击这里阅读论坛发帖规定,以避免在
今后的讨论中违规发帖。
─────────────────── 版务记录 ────────────────────
大虾你们好..
批处理代码中的ADSL连接
我想要制作一个小批处理文件。求各位大虾能按找我的步骤发段代码给我。在此我谢谢了。。
步骤:一、打开浏览器 路径D:/maxthon.exe
二、打开ADSL连接
三、打开指定网页 ( http://www.126.com和 http://www.163.com和 www.sina.com.cn)
四、关闭指定网页
五、断开ADSL连接
(注:重复循环 “二——五”的操作 1000次以后结束)
Last edited by cares on 2007-4-25 at 01:23 PM ]
─────────────────── Moderation Record ────────────────────
Performer: lxmxn
Original Title: Please Come in, Batch Processing Experts
Description: The title is too vague, which is not convenient for forum search and management. Please modify the title within three days.
Prompt: To modify the title, click Edit at the bottom right of the current post, and then click Edit Post after modification.
Punishment: Since it is a new forum user, no punishment is temporarily given; if the title is not modified after three days, 2 points will be deducted as punishment, and the moderator will forcefully modify the title. Please click here to read the forum posting regulations to avoid posting violations in future discussions.
─────────────────── Moderation Record ────────────────────
Hello, experts..
ADSL connection in batch processing code
I want to make a small batch processing file. Please, experts, can you send me a section of code according to my steps. Thank you here.
Steps: 1. Open the browser, path D:/maxthon.exe
2. Open the ADSL connection
3. Open the specified web pages ( http://www.126.com and http://www.163.com and www.sina.com.cn)
4. Close the specified web pages
5. Disconnect the ADSL connection
(Note: Repeat the operation of "2——5" 1000 times and then end)
Last edited by cares on 2007-4-25 at 01:23 PM ]
|
|
2007-4-25 06:43 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
就我所知的,批处理无法关闭Maxthon内建的网页,只能关闭Maxthon.exe进程。所以如果要按你的要求来,估计写不出代码。
As far as I know, batch processing cannot close the built-in web page of Maxthon, only the Maxthon.exe process. So if it has to be done according to your requirements, it is estimated that the code cannot be written.
|
|
2007-4-25 07:56 |
|
|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
不是吧...那怎么办呢??
Oh no... Then what should we do??
|
|
2007-4-27 02:08 |
|
|
tantan2010
新手上路

积分 6
发帖 4
注册 2006-10-19
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
用maxthon,如果是每次打开同一网页的话,可以考虑将打开的网页作为快捷组,直接关闭maxthon好了
Using Maxthon, if you open the same web page each time, you can consider treating the opened web page as a shortcut group and just close Maxthon directly
|
|
2007-4-27 05:06 |
|
|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
怎么设置呢,,请教一下,,可是打开MAXTHON很慢哦...呵呵
还有,请问能不能将这样的代码帮我写写呢?
一、连接ADSL
二、打开浏览器
三、关闭浏览器
四、断开连接,
循环此操作..谢谢了
如何增加循环语句呢..比如我的代码是这样的
@echo off
ping 126.com -n 1
rem 设置链接名称,ADSL帐号,ADSL密码
set MyConnection=更改为你的连接名称
set MyUsername=更改为你的ADSL帐号
set MyPassword=更改为你的ADSL密码
echo 正在ADSL连接:%MyConnection% ...
Rasdial %MyConnection% %MyUsername% %MyPassword%
echo 已经连接:%MyConnection%
echo 正在启动 Maxthon...
start D:\Program\Maxthon\Maxthon.exe
echo 已经启动 Maxthon
Rasdial %MyConnection% /disconnect
echo 已经断开ADSL连接:%MyConnection%
Last edited by cares on 2007-4-27 at 01:01 PM ]
How to set it up,, ask for advice,, but opening MAXTHON is very slow oh... Hehe
Also, may I ask if you can write such code for me?
1. Connect ADSL
2. Open the browser
3. Close the browser
4. Disconnect,
Loop this operation.. Thanks
How to add a loop statement.. For example, my code is like this
@echo off
ping 126.com -n 1
rem Set the connection name, ADSL account, ADSL password
set MyConnection=Change to your connection name
set MyUsername=Change to your ADSL account
set MyPassword=Change to your ADSL password
echo Connecting ADSL: %MyConnection% ...
Rasdial %MyConnection% %MyUsername% %MyPassword%
echo Connected: %MyConnection%
echo Starting Maxthon...
start D:\Program\Maxthon\Maxthon.exe
echo Started Maxthon
Rasdial %MyConnection% /disconnect
echo Disconnected ADSL connection: %MyConnection%
Last edited by cares on 2007-4-27 at 01:01 PM ]
|
|
2007-4-28 01:40 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
@echo off
:begin
rasdial 网络连接 username password
start Maxthon.exe
ping 127.1 -n 5 >nul
taskkill /f /im Maxthon.exe
rasdial 网络连接 /disconnect
goto :begin
Last edited by lxmxn on 2007-4-27 at 01:03 PM ]
```
@echo off
:begin
rasdial 网络连接 username password
start Maxthon.exe
ping 127.1 -n 5 >nul
taskkill /f /im Maxthon.exe
rasdial 网络连接 /disconnect
goto :begin
Last edited by lxmxn on 2007-4-27 at 01:03 PM ]
```
|
|
2007-4-28 01:57 |
|
|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
请问版主这段代码的解释能解释一下吗?
May I ask the moderator to explain the explanation of this code?
|
|
2007-4-28 02:03 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
1、用rasdial连接网络;注:网络连接是连接名,username是用户名,password是连接时的密码;
2、打开Maxthon;
3、延时4秒左右;
4、关闭Maxthon;
5、断开连接;
6、循环1-5。
1. Use rasdial to connect to the network; Note: The network connection is the connection name, username is the user name, and password is the password for connection;
2. Open Maxthon;
3. Wait for about 4 seconds;
4. Close Maxthon;
5. Disconnect the connection;
6. Loop 1-5.
|
|
2007-4-28 02:06 |
|
|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
用rasdial连接网络??????
我不是很明白啊...请问...自己家里的ADSL也可以这样连接的吗???
Using rasdial to connect to the network??????
I don't understand very much... Excuse me... Can the ADSL at my own home be connected in this way too???
|
|
2007-4-28 02:09 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2007-4-28 02:12 |
|
|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
哦,好的。谢谢版主...下次有问题一定再请教你...
Oh, okay. Thank you, moderator... I will definitely ask you again next time if I have questions...
|
|
2007-4-28 02:14 |
|
|
aaaaaa
初级用户
 
积分 128
发帖 8
注册 2003-4-3
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
呵呵,是刷票吧。若能读取验证码就好了。可惜现在没人能做得到呀。
Hehe, it's probably vote stuffing. If only the captcha could be read. But unfortunately, no one can do that now.
|
|
2007-4-30 00:06 |
|
|
cares
初级用户
 
积分 20
发帖 8
注册 2007-4-25 来自 浙江
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
版主...不能运行呀....后面的是对的..连接不上去...
Moderator...It can't run...The following is correct..Can't connect...
|
|
2007-4-30 23:12 |
|
|
ebfok
初级用户
 
积分 87
发帖 33
注册 2006-6-20 来自 cs
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
"rasdial 网络连接 username password"
lxmxn版主 你帮了我的大忙了~!我一直想实现自动联网的,现在终于搞定了。
我爱死你了,hoho
"rasdial 网络连接 username password"
Moderator lxmxn, you've been a great help to me~! I've been wanting to achieve automatic internet connection, and now it's finally done.
I love you to pieces, hoho
|
|
2007-5-1 00:19 |
|
|
honghunter
中级用户
  
积分 321
发帖 135
注册 2007-2-4
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
要是能不把密码明文放在BAT中就更好了。
It would be better if the password were not placed in plain text in the BAT.
|

探讨批量下载与智能化的下载 |
|
2007-5-1 06:55 |
|