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