通过PowerShell在Firefox中打开URL? [英] Open a URL in Firefox via PowerShell?
问题描述
我希望通过Powershell脚本在Firefox中打开网址
I want the url to be opened in Firefox by Powershell script
让事情变得有些困难,Firefox不是默认的浏览器,而是可移植的Firefox版本.
To make things a bit difficult, Firefox is not the default browser and it is a portable Firefox version.
我的便携式firefox安装似乎存在一些问题.即使将其设置为默认浏览器,也无法通过启动url调用它正常工作.
There seems to be some problem with my portable firefox installation. Even when making it the default browser, it doesn't work properly when invoked by start url.
我从此处使用全新安装的便携式Firefox 4.0进行了重新检查,并且ittlefoot的解决方案可以正常工作
I rechecked it with a fresh install of portable Firefox 4.0 from here and ittlefoot's solution works fine.
推荐答案
使用网站作为第一个参数应该可以.
Using the website as the first argument should work.
X:\path-to-firefox\firefox.exe "http://website-to-launch.com/yadda"
这篇关于通过PowerShell在Firefox中打开URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!