用超时(BATCH)打开两个带多个链接的IE窗口

时间:2017-01-12 00:44:51

标签: javascript batch-file vbscript cmd

例如,我希望它在 1ST IE WINDOW上打开google.com的4个标签页, 每个标签我设置1秒超时加载下一个标签

AFTER, 2秒......我想让它在新的 2ND IE WINDOW上打开google.com的另外4个标签页,每个标签仍设置为下一个标签的1秒超时。

到目前为止,我提出了:

    @echo off
    start "1" "www.google.com"
    ping 1.1.1.1 -n 1 -w 1000 > nul
    start "2" "www.google.com"
    ping 1.1.1.1 -n 1 -w 1000 > nul
    start "3" "www.google.com"
    ping 1.1.1.1 -n 1 -w 1000 > nul
    exit

代码适用于第一个IE窗口,问题是如何使用单个批处理为第二个窗口命令相同?

我附上了我想要实现的目标的图像:

1 个答案:

答案 0 :(得分:0)

启动IE的另一个实例并看到它将添加新窗口。

@echo off
start "1" "www.google.com"
ping 1.1.1.1 -n 1 -w 1000 > nul
start "2" "www.google.com"
ping 1.1.1.1 -n 1 -w 1000 > nul
start "3" "www.google.com"
ping 1.1.1.1 -n 1 -w 1000 > nul

"%ProgramFiles%\Internet Explorer\iexplore.exe"

start "4" "www.google.com"
ping 1.1.1.1 -n 1 -w 1000 > nul
start "5" "www.google.com"
ping 1.1.1.1 -n 1 -w 1000 > nul
start "6" "www.google.com"
ping 1.1.1.1 -n 1 -w 1000 > nul
exit