How to open a URL with cmd?

后端 未结 9 1455
南方客
南方客 2021-02-20 03:48

I already know that to open a webpage with the default browser you use: start www.google.com. However, I\'m trying to open a URL that contains a \'&\' in it for

9条回答
  •  盖世英雄少女心
    2021-02-20 04:24

    Try one of these command lines:

    powershell -command "start 'https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world'"
    

    or

    start "" "https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world"
    

    or even this one:

    explorer "https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world"
    

提交回复
热议问题