How to start default browser with a URL(with spaces and #) for a local file? Delphi

后端 未结 6 1154
天涯浪人
天涯浪人 2021-01-21 06:15

I want to open a local HTML file in the default browser.

For example: Default Browser is Mozilla Firefox.

The file to be opened: C:\\My Custom Path\\New Folde

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 06:38

    One can also create a process launching CMD.EXE with the following parameters :

    '/C start '+Url
    

    Quick and dirty, but it should work OK

提交回复
热议问题