Command-Line Option to Open Chrome in New Window and Move Focus











up vote
25
down vote

favorite
2












The default behavior of running chrome via the command-line:



chrome www.google.com


opens a new tab in an existing instance of chrome and moves the focus from the terminal to the newly created tab.



Adding the new-window switch:



chrome --new-window www.google.com


opens chrome in a new window but does not move the focus.



What options should I use to open a new window but also switch focus to that window?



Note: I'm using Windows 7.










share|improve this question
























  • I'm using Windows 7
    – Isaac Kleinman
    Mar 20 '14 at 16:33






  • 1




    I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:36












  • Exactly as I described in the question.
    – Isaac Kleinman
    Mar 20 '14 at 16:39










  • if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:42












  • Strange. I'm using the standard Windows Command Prompt; same chrome version.
    – Isaac Kleinman
    Mar 20 '14 at 16:44















up vote
25
down vote

favorite
2












The default behavior of running chrome via the command-line:



chrome www.google.com


opens a new tab in an existing instance of chrome and moves the focus from the terminal to the newly created tab.



Adding the new-window switch:



chrome --new-window www.google.com


opens chrome in a new window but does not move the focus.



What options should I use to open a new window but also switch focus to that window?



Note: I'm using Windows 7.










share|improve this question
























  • I'm using Windows 7
    – Isaac Kleinman
    Mar 20 '14 at 16:33






  • 1




    I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:36












  • Exactly as I described in the question.
    – Isaac Kleinman
    Mar 20 '14 at 16:39










  • if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:42












  • Strange. I'm using the standard Windows Command Prompt; same chrome version.
    – Isaac Kleinman
    Mar 20 '14 at 16:44













up vote
25
down vote

favorite
2









up vote
25
down vote

favorite
2






2





The default behavior of running chrome via the command-line:



chrome www.google.com


opens a new tab in an existing instance of chrome and moves the focus from the terminal to the newly created tab.



Adding the new-window switch:



chrome --new-window www.google.com


opens chrome in a new window but does not move the focus.



What options should I use to open a new window but also switch focus to that window?



Note: I'm using Windows 7.










share|improve this question















The default behavior of running chrome via the command-line:



chrome www.google.com


opens a new tab in an existing instance of chrome and moves the focus from the terminal to the newly created tab.



Adding the new-window switch:



chrome --new-window www.google.com


opens chrome in a new window but does not move the focus.



What options should I use to open a new window but also switch focus to that window?



Note: I'm using Windows 7.







command-line google-chrome






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 20 '14 at 16:33

























asked Mar 20 '14 at 16:25









Isaac Kleinman

2691410




2691410












  • I'm using Windows 7
    – Isaac Kleinman
    Mar 20 '14 at 16:33






  • 1




    I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:36












  • Exactly as I described in the question.
    – Isaac Kleinman
    Mar 20 '14 at 16:39










  • if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:42












  • Strange. I'm using the standard Windows Command Prompt; same chrome version.
    – Isaac Kleinman
    Mar 20 '14 at 16:44


















  • I'm using Windows 7
    – Isaac Kleinman
    Mar 20 '14 at 16:33






  • 1




    I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:36












  • Exactly as I described in the question.
    – Isaac Kleinman
    Mar 20 '14 at 16:39










  • if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
    – Ƭᴇcʜιᴇ007
    Mar 20 '14 at 16:42












  • Strange. I'm using the standard Windows Command Prompt; same chrome version.
    – Isaac Kleinman
    Mar 20 '14 at 16:44
















I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33




I'm using Windows 7
– Isaac Kleinman
Mar 20 '14 at 16:33




1




1




I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36






I'm using Windows 7 too, and it works for me... When I launch Chrome from a command-line with --new-window command it opens the address in a Chrome new window, and takes focus. How exactly are you launching the command?
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:36














Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39




Exactly as I described in the question.
– Isaac Kleinman
Mar 20 '14 at 16:39












if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42






if you're using a standard Windows Command Prompt (assuming that's what you mean by 'the terminal') and just running it from there as stated, then it should take focus (does for me anyway). What version if Chrome are you using? I'm on 33.0.1750.154 m.
– Ƭᴇcʜιᴇ007
Mar 20 '14 at 16:42














Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44




Strange. I'm using the standard Windows Command Prompt; same chrome version.
– Isaac Kleinman
Mar 20 '14 at 16:44










3 Answers
3






active

oldest

votes

















up vote
26
down vote



accepted










try this one



start chrome /new-window www.google.com



opens google.com in a new instance of chrome.






share|improve this answer

















  • 3




    Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
    – Jack O'Connor
    Oct 7 '15 at 21:00






  • 1




    On Windows 10 this does not start a new process.
    – Howard Hoffman
    Oct 26 '17 at 12:30










  • @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
    – erm3nda
    Jul 24 at 10:26


















up vote
2
down vote













Try to use this extension which solves this bug: Chrome New Window Focus.






share|improve this answer




























    up vote
    -1
    down vote













    Give a time and it will focus on active window:




    start chrome.exe --new-window "http://hotmail.com"



    start chrome.exe --new-window "http://gmail.com"



    TIMEOUT 1



    start chrome.exe "http://yahoo.com"






    share|improve this answer

















    • 1




      Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
      – Twisty Impersonator
      Apr 18 '17 at 17:50











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f731467%2fcommand-line-option-to-open-chrome-in-new-window-and-move-focus%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    26
    down vote



    accepted










    try this one



    start chrome /new-window www.google.com



    opens google.com in a new instance of chrome.






    share|improve this answer

















    • 3




      Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
      – Jack O'Connor
      Oct 7 '15 at 21:00






    • 1




      On Windows 10 this does not start a new process.
      – Howard Hoffman
      Oct 26 '17 at 12:30










    • @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
      – erm3nda
      Jul 24 at 10:26















    up vote
    26
    down vote



    accepted










    try this one



    start chrome /new-window www.google.com



    opens google.com in a new instance of chrome.






    share|improve this answer

















    • 3




      Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
      – Jack O'Connor
      Oct 7 '15 at 21:00






    • 1




      On Windows 10 this does not start a new process.
      – Howard Hoffman
      Oct 26 '17 at 12:30










    • @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
      – erm3nda
      Jul 24 at 10:26













    up vote
    26
    down vote



    accepted







    up vote
    26
    down vote



    accepted






    try this one



    start chrome /new-window www.google.com



    opens google.com in a new instance of chrome.






    share|improve this answer












    try this one



    start chrome /new-window www.google.com



    opens google.com in a new instance of chrome.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 9 '15 at 14:04









    Pascal

    27633




    27633








    • 3




      Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
      – Jack O'Connor
      Oct 7 '15 at 21:00






    • 1




      On Windows 10 this does not start a new process.
      – Howard Hoffman
      Oct 26 '17 at 12:30










    • @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
      – erm3nda
      Jul 24 at 10:26














    • 3




      Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
      – Jack O'Connor
      Oct 7 '15 at 21:00






    • 1




      On Windows 10 this does not start a new process.
      – Howard Hoffman
      Oct 26 '17 at 12:30










    • @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
      – erm3nda
      Jul 24 at 10:26








    3




    3




    Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
    – Jack O'Connor
    Oct 7 '15 at 21:00




    Awesome. chromium --new-window seems to work on Linux. Missing from the manpage.
    – Jack O'Connor
    Oct 7 '15 at 21:00




    1




    1




    On Windows 10 this does not start a new process.
    – Howard Hoffman
    Oct 26 '17 at 12:30




    On Windows 10 this does not start a new process.
    – Howard Hoffman
    Oct 26 '17 at 12:30












    @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
    – erm3nda
    Jul 24 at 10:26




    @HowardHoffman --new-window doesn't open a new instance/process. In example, you could not apply --proxy-server to that new window. It's just a detached window of the same instance, same profile, etc.
    – erm3nda
    Jul 24 at 10:26












    up vote
    2
    down vote













    Try to use this extension which solves this bug: Chrome New Window Focus.






    share|improve this answer

























      up vote
      2
      down vote













      Try to use this extension which solves this bug: Chrome New Window Focus.






      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        Try to use this extension which solves this bug: Chrome New Window Focus.






        share|improve this answer












        Try to use this extension which solves this bug: Chrome New Window Focus.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 14 '14 at 9:11









        BornToCode

        190111




        190111






















            up vote
            -1
            down vote













            Give a time and it will focus on active window:




            start chrome.exe --new-window "http://hotmail.com"



            start chrome.exe --new-window "http://gmail.com"



            TIMEOUT 1



            start chrome.exe "http://yahoo.com"






            share|improve this answer

















            • 1




              Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
              – Twisty Impersonator
              Apr 18 '17 at 17:50















            up vote
            -1
            down vote













            Give a time and it will focus on active window:




            start chrome.exe --new-window "http://hotmail.com"



            start chrome.exe --new-window "http://gmail.com"



            TIMEOUT 1



            start chrome.exe "http://yahoo.com"






            share|improve this answer

















            • 1




              Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
              – Twisty Impersonator
              Apr 18 '17 at 17:50













            up vote
            -1
            down vote










            up vote
            -1
            down vote









            Give a time and it will focus on active window:




            start chrome.exe --new-window "http://hotmail.com"



            start chrome.exe --new-window "http://gmail.com"



            TIMEOUT 1



            start chrome.exe "http://yahoo.com"






            share|improve this answer












            Give a time and it will focus on active window:




            start chrome.exe --new-window "http://hotmail.com"



            start chrome.exe --new-window "http://gmail.com"



            TIMEOUT 1



            start chrome.exe "http://yahoo.com"







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 18 '17 at 17:08









            shdcol

            1




            1








            • 1




              Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
              – Twisty Impersonator
              Apr 18 '17 at 17:50














            • 1




              Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
              – Twisty Impersonator
              Apr 18 '17 at 17:50








            1




            1




            Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
            – Twisty Impersonator
            Apr 18 '17 at 17:50




            Welcome to Super User. Can you explain what exactly happens when you run these commands? In particular, why the 3rd start command? Also, it's unclear what you mean by "Give a time".
            – Twisty Impersonator
            Apr 18 '17 at 17:50


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f731467%2fcommand-line-option-to-open-chrome-in-new-window-and-move-focus%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”