1

在cmd终端中通过explorer.exe调用默认浏览器打开一个URL(http,https):

> explorer https://google.com

但是,我机器上的 .html 文件已指定为使用编辑器打开,并且资源管理器将在编辑器中打开 HTML 文件。例如,这些将打开编辑器:

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

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

4

1 回答 1

1

试试start命令:

start file://C:/Temp/test.html
于 2020-05-24T20:11:16.287 回答