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-09 01:16
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about BAT debugging errors~~~~ View 800 Replies 4
Original Poster Posted 2008-06-21 19:57 ·  中国 福建 福州 电信
初级用户
Credits 39
Posts 13
Joined 2008-01-20 00:00
18-year member
UID 109039
Gender Male
Status Offline
@echo on
:begin
for /f "delims=" %%a in (1.txt) do start "" "%%a"&ping 127.1 /n 10 >nul&taskkill /im iexplore.exe /f>nul
goto :begin
This is a section that uses DOS to open an IE window, keep it open for 10 seconds, then close the IE window. Then open a new window again. Still wait 10 seconds.
Where is the error? It keeps saying it won't work. Please help debug where the problem is.
A small note: you need to create a 1.txt text document in the same directory as this BAT, and inside it save one URL per line, with the URL starting like http://www.
Floor 2 Posted 2008-06-21 20:33 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Post a screenshot of the “it won't work” prompt so we can take a look
Floor 3 Posted 2008-06-21 20:45 ·  中国 福建 福州 电信
初级用户
Credits 39
Posts 13
Joined 2008-01-20 00:00
18-year member
UID 109039
Gender Male
Status Offline

The picture above appears.
Floor 4 Posted 2008-06-21 21:28 ·  中国 福建 福州 电信
初级用户
Credits 39
Posts 13
Joined 2008-01-20 00:00
18-year member
UID 109039
Gender Male
Status Offline
Solved. There was an extra quotation mark.
Floor 5 Posted 2008-06-22 07:29 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
初级用户
Credits 78
Posts 39
Joined 2008-06-20 06:03
18-year member
UID 120614
Gender Male
Status Offline
Are you refreshing page views???
Forum Jump: