2014-12-28 108 views
0

我想用powershell打開.html文件。我正在使用Yeoman並使用命令「Grunt Server」打開它,但它始終在默認瀏覽器中打開它。我應該使用哪種命令(例如)使用Chrome打開它?用powershell打開.html文件

我可以將我的默認瀏覽器更改爲Chrome,但它只是有趣的知道。

回答

1

您應該嘗試從命令行運行start chrome <your_filename_path>

另外,如果你知道通過(例如)在Chrome路試開:

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" <your_filename_path>

+2

'啓動'也適用 –

0

你好的好朋友,如果你想打開火狐一個index.html文件,在電源外殼上運行。在我的情況

> c:\path/to/firefox.exe index.html

例如

> 'c:\Program Files\Mozilla Firefox\firefox.exe' .\index.html