本文介绍了使用cmd在Internet Explorer中打开选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我要创建一个cmd批处理文件,该文件在Internet Explorer窗口
中打开3个选项卡。是否已经打开Internet Explorer窗口对我来说没有关系
我有此命令,但是它打开了chrome中的标签(我的默认浏览器,不想更改它。。)

I want to make a cmd batch file that opens 3 tabs in internet explorer windowDoesnt matter to me if there is already internet explorer window open or notI have this commant, but it opens the tabs in chrome (my default browser, dont want to change it..)

START /d iexplore.exe "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://marathon:7040/console/jsp/login/j_security_check?j_username=wc&j_password=12345"
START /d iexplore.exe "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://sparta:7040/console/jsp/login/j_security_check?j_username=wc&j_password=12345"
START /d iexplore.exe "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://sparta:7040/console/jsp/login/j_security_check?j_username=wc&j_password=12345"

请帮助:)

推荐答案

终于在IE中成功了!用VB脚本!将其保存在.vbs文件中:

Finally got it work in IE! with VB script!! save this in .vbs file:

Const navOpenInBackgroundTab = &H1000

site1 = "(write your site here)"
site2 = "(write your site here)"
site3 = "(write your site here)"

Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate2 site1
oIE.Navigate2 site2,navOpenInBackgroundTab
oIE.Navigate2 site3,navOpenInBackgroundTab

Set oIE = Nothing

这篇关于使用cmd在Internet Explorer中打开选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 20:13