batch file to open tabs in a NEW browser window

后端 未结 4 2075
北荒
北荒 2021-02-05 18:42

I need to modify batch file.

I have a batch file that opens many tabs when I click icon from desktop. These tabs are opened in my ALREADY OPENED default browser.

4条回答
  •  萌比男神i
    2021-02-05 19:11

    I figured this out.

    The batch file to open a NEW browser window, and then the intended websites:

    @echo off
    "C:\Users\THEUSER\AppData\Local\Google\Chrome\Application\chrome.exe"
    sleep1
    start "webpage name" "http://someurl.com/"
    start "webpage name" "http://someurl.com/"
    start "webpage name" "http://someurl.com/"
    start "webpage name" "http://someurl.com/"
    

    It is working for me. The only caveat, is that if we have a set of pages to open when the new browser window starts up, these will be open too.

    Solution? Create another batch file to open those intended websites, and use the desktop file icon to open these. THEN change browser's default configuration to not open specific website or home page on start up.

    UPDATE After Alvaro commented on the browser not being the default browser:

    For me the default browser is Chrome. Then, for you to set your default browser to open, the line "C:\Users\THEUSER\AppData\Local\Google\Chrome\Application\chrome.exe" should be changed to reflect the path of your intended browser

提交回复
热议问题