使用 cmd 在 Internet Explorer 中打开选项卡 [英] Open tabs in internet explorer with cmd

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

问题描述

我想制作一个在 Internet Explorer 窗口中打开 3 个选项卡的 cmd 批处理文件是否已经打开 Internet Explorer 窗口对我来说无关紧要我有这个命令,但它会在 chrome 中打开标签(我的默认浏览器,不想更改它..)

I want to make a cmd batch file that opens 3 tabs in internet explorer window Doesnt matter to me if there is already internet explorer window open or not I 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 Exploreriexplore.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 Exploreriexplore.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 Exploreriexplore.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 中打开选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆