How to open a URL with cmd?

后端 未结 9 1451
南方客
南方客 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:00

    You can do it using start chrome -u url here.

    0 讨论(0)
  • 2021-02-20 04:01

    You can use URL shorteners.

    For your link:

    start [created link]
    
    0 讨论(0)
  • 2021-02-20 04:11

    First provide the full path to the browser application file and then the complete link like this:

    start "C:\Path\To\Browser.exe" "http://WebsiteURL.com"
    
    0 讨论(0)
  • 2021-02-20 04:12

    When I tried the same, it worked for me only by typing :

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

    in the Command Prompt.

    0 讨论(0)
  • 2021-02-20 04:15

    & is a special caractere in batch so if the URL contains a special caractere you just have to do it like this:

    start "" "your url" 
    
    0 讨论(0)
  • 2021-02-20 04:16

    If you have Linux you can try using these command

    $links http://google.com
    

    or

    $elinks http://google.com/
    
    0 讨论(0)
提交回复
热议问题