@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.
: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.


