Launching a website via windows commandline

前端 未结 7 939
栀梦
栀梦 2020-12-24 04:50

I have a program launching a website via the following command.

cmd \"start /max http://url.com\"

When launching a website via this method

7条回答
  •  天涯浪人
    2020-12-24 05:35

    To open a URL with the default browser, you can execute:

    rundll32 url.dll,FileProtocolHandler https://www.google.com
    

    I had issues with URL parameters with the other solutions. However, this one seemed to work correctly.

提交回复
热议问题