Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用非默认浏览器使用powershell打开.html文件_Powershell - Fatal编程技术网

使用非默认浏览器使用powershell打开.html文件

使用非默认浏览器使用powershell打开.html文件,powershell,Powershell,我正试图在powershell的帮助下打开.html文件。我正在使用Yeoman并使用命令“Grunt Server”打开它,但它会在默认浏览器中继续打开它。我应该使用哪个命令用Chrome打开它(例如) 我可以将默认浏览器更改为Chrome,但这很有趣。您应该尝试从命令行运行启动Chrome 另外,如果您知道Chrome路径,请尝试通过打开(例如): C:\ProgramFiles(x86)\Google\Chrome\Application\Chrome.exe“hello pals如果您想

我正试图在powershell的帮助下打开
.html
文件。我正在使用Yeoman并使用命令“Grunt Server”打开它,但它会在默认浏览器中继续打开它。我应该使用哪个命令用Chrome打开它(例如)


我可以将默认浏览器更改为Chrome,但这很有趣。

您应该尝试从命令行运行
启动Chrome

另外,如果您知道Chrome路径,请尝试通过打开(例如):


C:\ProgramFiles(x86)\Google\Chrome\Application\Chrome.exe“

hello pals如果您想通过firefox打开index.html文件,请在power shell上运行

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

我的例子

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