|
tired_bird
中级用户
  
积分 307
发帖 58
注册 2004-10-21
状态 离线
|
『楼 主』:
[求助]请教为何我这个打开多个网页的批处理只能打开一个网
使用 LLM 解释/回答一下
请教为何我这个打开多个网页的批处理只能打开一个网页?
我执行以下这个批处理
@echo off
set ie="C:\Program Files\Internet Explorer\IEXPLORE.EXE"
%ie% www.cn-dos.net/dosbbs/list.asp?boardid=9
%ie% www.lasg.ac.cn/cgi-bin/forum/leoboard.cgi
%ie% bbs.chinaunix.net/forum/viewforum.php?f=24
:: ... 把你所有需要打开的网站按上面的方式加入
set ie=
exit
结果执行很久只能打开一个第一个网页,并且出现的dos命令端口一直在闪烁,没有关闭。
而我在另外的dos窗口下,可以用命令逐个打开以上网站?
何故?还望赐教,谢先!
I would like to ask why my batch script that opens multiple web pages can only open one web page?
I executed the following batch script
@echo off
set ie="C:\Program Files\Internet Explorer\IEXPLORE.EXE"
%ie% www.cn-dos.net/dosbbs/list.asp?boardid=9
%ie% www.lasg.ac.cn/cgi-bin/forum/leoboard.cgi
%ie% bbs.chinaunix.net/forum/viewforum.php?f=24
:: ... Add all the websites you need to open in the above way
set ie=
exit
As a result, after executing for a long time, only the first web page is opened, and the DOS command port keeps flashing and does not close.
While in another DOS window, I can use the command to open the above websites one by one?
Why? I hope for your advice, thanks in advance!
|
|
2004-11-3 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
在每一行的%ie%前加上start命令,例如:
start %ie% www.cn-dos.net/dosbbs/list.asp?boardid=9
Add the start command before %ie% in each line, for example:
start %ie% www.cn-dos.net/dosbbs/list.asp?boardid=9
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-11-3 00:00 |
|
|
tired_bird
中级用户
  
积分 307
发帖 58
注册 2004-10-21
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
to Climbing我刚试过你的方法,结果是只能打开最后一个网站,并且这个网站还会覆盖我执行该批处理前打开第一个网站,何故?还望指点,我是在win2000下测试的.
I just tried your method, and the result is that only the last website can be opened, and this website will also overwrite the first website I opened before executing this batch processing. Why? I hope you can give me some advice. I tested it under win2000.
|
|
2004-11-3 00:00 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
|
2004-11-4 00:00 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
|
2004-11-4 00:00 |
|
|
tired_bird
中级用户
  
积分 307
发帖 58
注册 2004-10-21
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
感谢 JonePeng,只是“注意啦,我把“SET IE=”那行原来的Program Files和Internet Explorer两个文件夹名改成短文件名格式才行得通。”为什么我那个方法不行,原因何在呢,如能解释那就更完美。
Thanks to JonePeng, but "Attention, I changed the original folder names Program Files and Internet Explorer in the line "SET IE=" to the short filename format to make it work. "Why didn't my method work? What's the reason? If you can explain it, it would be perfect.
|
|
2004-11-4 00:00 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
   『第 7 楼』:
使用 LLM 解释/回答一下
呵呵,因为你的批处理是在DOS下运行的,DOS不支持长文件夹名(我在XP的命令提示符下试过,同样不支持),所以只好改成短文件名格式。如果不改成短文件名格式,那么那个批处理就会这样执行:start c:\Program Files\Internet Explorer.exe www.cn-dos.net,将会弹出一个提示框:什么“找不到Program”云云。另外,在Win2000/XP的命令提示符里看到的文件夹名都是长格式的,那么如何显示短格式呢?你只要键入DIR /X /AD就看到了,例如Program Files显示成Progra~1,Document and Settings变成Docume~1,等等。
Hehe, because your batch processing runs under DOS, and DOS does not support long folder names (I tried it in the command prompt of XP, and it also doesn't support), so it has to be changed to the short file name format. If you don't change it to the short file name format, then that batch processing will execute like this: start c:\Program Files\Internet Explorer.exe www.cn-dos.net, and a prompt box will pop up: something like "can't find Program" and so on. Also, in the command prompt of Win2000/XP, the folder names you see are all in long format. So how to display the short format? You just need to type DIR /X /AD to see it. For example, Program Files is displayed as Progra~1, Document and Settings becomes Docume~1, and so on.
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2004-11-5 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
不是因为长文件名的原因,而是因为Start命令行参数的原因,start命令将第一个双引号括起来的内容当作标题行来处理,所以IE的命令行就被当成标题行处理了,这显然就会产生问题。原批处理应该修改为:
@echo off
set ie=start "Internet Explorer" "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
%ie% www.cn-dos.net/dosbbs/list.asp?boardid=9
%ie% www.lasg.ac.cn/cgi-bin/forum/leoboard.cgi
%ie% bbs.chinaunix.net/forum/viewforum.php?f=24
:: ... 把你所有需要打开的网站按上面的方式加入
set ie=
exit另外,我也推荐使用Maxthon(MyIE2)来替换IE,它的快捷组要比这批处理方便多了。
It's not because of the long filename, but because of the command-line parameters of the Start command. The Start command treats the content enclosed in the first pair of double quotes as the title line, so the command line of IE is treated as the title line, which will obviously cause problems. The original batch script should be modified as follows:
@echo off
set ie=start "Internet Explorer" "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
%ie% www.cn-dos.net/dosbbs/list.asp?boardid=9
%ie% www.lasg.ac.cn/cgi-bin/forum/leoboard.cgi
%ie% bbs.chinaunix.net/forum/viewforum.php?f=24
:: ... Add all the websites you need to open in the above way
set ie=
exit
In addition, I also recommend using Maxthon (MyIE2) to replace IE. Its shortcut groups are much more convenient than this batch script.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-11-5 00:00 |
|
|
tired_bird
中级用户
  
积分 307
发帖 58
注册 2004-10-21
状态 离线
|
|
2004-11-5 00:00 |
|