如何启动默认浏览器打开本地.html文件?

问题描述 投票:0回答:1

通过cmd终端的explorer.exe调用默认的浏览器打开一个网址(http,https)。

> explorer https://google.com

但是,我的机器上的.html文件已经被指定使用编辑器打开,资源管理器会在编辑器中打开HTML文件。例如,这些都会打开编辑器。

> explorer test.html
> explorer file:///C:/Temp/test.html

如何打开 local HTML filescmd 使用 default browser?

windows browser cmd default file-uri
1个回答
1
投票

试试 start 命令。

start file://C:/Temp/test.html
© www.soinside.com 2019 - 2024. All rights reserved.