batch file to open tabs in a NEW browser window

后端 未结 4 2025
北荒
北荒 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条回答
  • 2021-02-05 18:53
    start chrome "google.com"
    

    .exe is not required

    0 讨论(0)
  • 2021-02-05 18:55

    Try this:

    @echo off
    
    SET BROWSER=firefox.exe
    SET WAIT_TIME=2
    START %BROWSER% -new-window "website"
    START %BROWSER% -new-window "website"
    
    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-05 19:11

    This is much simpler:

    start chrome.exe yahoo.com 
    
    0 讨论(0)
提交回复
热议问题