1

I am using IE9 and I'm trying to load two web pages on startup.

Originally it was loading one but now I need to see 2 different pages, preferably tabs but not necessary, whatever is easier.

Here is the original code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META HTTP-EQUIV="refresh" content="10;URL=http://www.gmail.com">

<title>Loading application...</title>

</head>

<body>
<h1>
PLEASE WAIT...!!!
</h1>
</body>
</html>

and I tried creating a batch file to open 2 different iexplore.exe with 2 different websites but it didn't work. It would only open the 2nd iexplore after the first one was closed.

@echo off

SET BROWSER=iexplore.exe
START %BROWSER% "http://www.cnn.com"
SLEEP 10
START %BROWSER% "http://www.gmail.com"

NOTE: I need a 10 second delay to open gmail.com (or one of the sites). That's where I'm getting stuck, otherwise I would just set the home pages to these two and add a shortcut to iexplore.exe to the startup folder.

Any help is greatly appreciated!

4

2 回答 2

0

如果你想在新标签页中打开第二页,IE 必须是你的默认浏览器。以下对我有用。我没有睡觉,所以我用 ping 代替了它。

@echo off
setlocal
SET BROWSER=iexplore.exe
START %BROWSER% "http://www.cnn.com"
ping -n 10 localhost>nul
START "" "http://www.gmail.com"
于 2013-05-16T14:32:32.997 回答
0
SET BROWSER=iexplore.exe
START /w %BROWSER% "http://www.cnn.com"
SLEEP 10
START %BROWSER% "http://www.gmail.com"

START /W等待完成执行。Internet Explorer exe 被命名为 iexplore.exe。

于 2013-05-16T14:27:17.080 回答