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-08-26 23:00
中国DOS联盟论坛 » 其它操作系统综合讨论区 » How to open a web page under DOS? View 3,999 Replies 17
Original Poster Posted 2006-06-05 12:27 ·  中国 云南 昆明 联通
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
I'm sorry, I sent it before I finished speaking!
I want to create an open.bat file under my D drive, and I put this line in it: http://192.168.168.202/vs/check/check.aspx
The purpose is to automatically open this web page, but it didn't open (the path is correct). May I ask where I went wrong and how to write it? Please give an example!

[ Last edited by qwe1234567 on 2006-6-8 at 08:12 ]
Floor 2 Posted 2006-06-05 14:23 ·  中国 浙江 宁波 慈溪市 电信
初级用户
Credits 34
Posts 12
Joined 2006-06-04 18:42
20-year member
UID 56544
Status Offline
echo off
Start http://www.hao123.com
Floor 3 Posted 2006-06-06 19:46 ·  中国 安徽 宿州 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
The poster above is correct.
Floor 4 Posted 2006-06-06 20:23 ·  中国 浙江 衢州 电信
银牌会员
★★★
Credits 1,270
Posts 548
Joined 2004-05-31 00:00
22-year member
UID 25754
Gender Male
Status Offline
The start command can actually be used to open files with suffixes like .word, .txt, etc. The command will automatically find the corresponding program to open the file.
Floor 5 Posted 2006-06-06 21:00 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
The function of start is the same as "Start --> Run", but it is recommended to add quotes for parameters to avoid spaces.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2006-06-06 23:17 ·  中国 云南 昆明 电信
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
echo off
Start http://www.hao123.com
This also doesn't work, really very depressed. If the previous program is not run,
start http://192.168.168.202/vs/check/check.aspx
This one works
Floor 7 Posted 2006-06-07 01:39 ·  中国 浙江 杭州 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
The person upstairs, on my computer, running
echo off
Start http://www.hao123.com
It's correct. My environment is XP + SP2
Could it be that you blocked http://www.hao123.com?
Suspect there's a problem with your network settings.
Floor 8 Posted 2006-06-08 00:48 ·  中国 香港 环球全域电讯
初级用户
★★
Credits 121
Posts 61
Joined 2006-04-18 00:09
20-year member
UID 54007
Gender Male
From HK
Status Offline
The method on the 2nd floor is feasible. Actually, just using the 2nd sentence is enough.
Floor 9 Posted 2006-06-09 16:57 ·  中国 北京 朝阳区 联通
新手上路
Credits 12
Posts 6
Joined 2006-06-09 14:46
20-year member
UID 56792
Status Offline
Create a 163.bat file, edit the document and enter: start http://www.163.com
Execute the 163.bat file, OK! THK!
Floor 10 Posted 2006-08-16 15:46 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 52
Posts 14
Joined 2006-08-07 11:43
20-year member
UID 60018
Status Offline
Excuse me, after successfully executing and opening the web page, I want to return an information about whether the execution is successful or not to e:/niuji/1.txt.

If it cannot be opened:
The content of 1.txt is: FAILED

If it can be opened:
The content of 1.txt is: SUCCESS

How should I do it?
Troubled~
Thank you
Floor 11 Posted 2006-08-16 16:36 ·  中国 四川 成都 电信
初级用户
Credits 62
Posts 27
Joined 2006-08-02 17:41
20-year member
UID 59703
Status Offline
Originally posted by niuji at 2006-8-16 15:46:
I would like to return a success or failure message to e:/niuji/1.txt after successfully opening a web page.

If it cannot be opened:
The content of 1.txt is: FAILED

If it can be opened:
The content of 1.txt is: SUCCESS
...

I think, to get whether the page can be opened, it should be impossible, right!
Floor 12 Posted 2006-08-23 11:27 ·  中国 广东 韶关 电信
初级用户
Credits 70
Posts 25
Joined 2006-08-22 10:54
20-year member
UID 61015
Gender Male
Status Offline
New here, learned it!!
Floor 13 Posted 2006-09-13 10:02 ·  中国 江西 鹰潭 电信
中级用户
★★
Credits 244
Posts 92
Joined 2006-05-13 21:24
20-year member
UID 55477
Status Offline
start c:\"program files"\"internet explorer"\iexplore.exe www.hao123.com
Floor 14 Posted 2006-09-15 11:58 ·  中国 湖南 长沙 电信
初级用户
Credits 84
Posts 30
Joined 2006-09-12 07:03
19-year member
UID 62391
Gender Male
Status Offline
Learned something again. Thanks to the LZ and the second floor
Floor 15 Posted 2006-09-15 21:20 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Since IE has the shortcut key value in the registry, you can just start iexplore www.google.com directly

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Forum Jump: