Horizon
Member in Training
Posts: 32
|
Post by Horizon on Apr 11, 2024 8:03:18 GMT
Hello,
Recently I had a need to open a browser on a specific web page from a JustBASIC dashboard program. So, I thought I'd share the tip:
run "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe https://www.euronews.com"
Here I've pointed to Microsoft Edge after finding the executable on my Win10 computer. Of course you can chose your preferred browser as long as you define the full path to the executable. The space between the executable and the URL is important. Here I've selected a news website as the destination URL, but this can be any URL of your choosing. You could for example use JustBASIC program to create html, JavaScript etc. and test this from your program (pointing to a local .html file on your computer.
|
|
|
Post by tsh73 on Apr 11, 2024 9:24:56 GMT
also these two They do not need you to find browser - they will open your default one
rundll32 url.dll,FileProtocolHandler http://google.com
explorer.exe http://google.com
|
|