LoginSignup
18
16

More than 3 years have passed since last update.

コマンドラインだけでWebブラウザのバージョンを調べる

Last updated at Posted at 2018-02-27

はじめに

Webブラウザのバージョンを調べる必要があったが、Webブラウザを立ちあげる必要がありそうで面倒臭い。
そこでコマンドラインだけでWebブラウザのバージョンを調べる方法を整理した。

確認したOS

  • Windows 10 May 2019 Update (バージョン 1903 [18362.476]]) 64bit
  • macOS High Catalina

Google Chrome

Windows10

dir /B /O-N "C:\Program Files (x86)\Google\Chrome\Application" | findstr "^[0-9].*¥>

Mac OSX

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version

Mozilla Firefox

Windows10

"C:\Program Files\Mozilla Firefox\firefox.exe" -v | more

Mac OSX

/Applications/Firefox.app/Contents/MacOS/firefox-bin -v

Opera

Windows10

dir /B /O-N "C:\Program Files (x86)\Google\Chrome\Application" | findstr "^[0-9].*¥>"

Mac OSX

/Applications/Opera.app/Contents/MacOS/Opera --version

Safari

Mac OSX

cat /Applications/Safari.app/Contents/version.plist | xmllint --xpath "//string[3]/text() |//string[4]/text()" -

Microsoft Edge

Windows10

reg query HKEY_CLASSES_ROOT\ActivatableClasses\Package\ | findstr "Edge_"

※ cmd.exeやPowerShellでもう少しうまく加工したい。。。

Internet Explorer

Windows10

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" /v "svcVersion"
18
16
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
16