我需要从 Windows 的命令行知道我的系统上安装了哪个 Firefox 版本
或Linux。
最佳答案
根据 this link ,看来-v
论点(以及更多)在 Windows 上被破坏了。如果您点击网站上的错误链接,似乎有一种解决方法。我引用评论:
Workaround (works with Firefox, Thunderbird, and, I suppose, other programs too):
<program-name> -h | more
The bug happens because, without redirection, the program releases its stdout before handling the -help parameter. With redirection, stdout is not released and you can see the output.
例如对于 Firefox:
C:\Program Files (x86)\Mozilla Firefox>firefox -v | more
Mozilla Firefox 3.6.13, Copyright (c) 1998 - 2010 mozilla.org
至少对我有用。无
| more
我什么也没打印。在 Linux 上,无论有没有管道,它都可以工作。
关于firefox - 从命令行,如何知道 windows/linux 中安装了哪个 Firefox 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4644470/