Open tabs in internet explorer with cmd

前端 未结 4 608
醉酒成梦
醉酒成梦 2021-01-16 14:51

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 comman

4条回答
  •  春和景丽
    2021-01-16 15:28

    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
    

提交回复
热议问题