Editing
Get chrome version from command line
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Get [[Google chrome]] version from command line == Get Google Chrome Version from Command Line == === Windows === 1. Check the Chrome Installation Paths. Common Chrome Installation Paths: * C:\Program Files\Google\Chrome\Application\chrome.exe * C:\Program Files (x86)\Google\Chrome\Application\chrome.exe * %LOCALAPPDATA%\Google\Chrome\Application\chrome.exe (Usually expands to: C:\Users\<username>\AppData\Local\Google\Chrome\Application\chrome.exe) The following examples use "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" as the installation path 2. Open Windows PowerShell 3. Enter one of the following commands<ref>[https://stackoverflow.com/questions/50880917/how-to-get-chrome-version-using-command-prompt-in-windows How to get chrome version using command prompt in windows - Stack Overflow]</ref>: <pre> ```powershell # Method 1 powershell -command "& {(Get-Item 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe').VersionInfo.FileVersion}" # Method 2 (shorter) (Get-Item 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe').VersionInfo.FileVersion ``` </pre> 4. Or using Command Prompt (cmd.exe): <pre> ```batch # Method 1: Get version from executable file wmic datafile where "name='C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'" get Version /value # Method 2: Get version from registry reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version ``` </pre> Example output of powershell: <pre> 131.0.6778.265 </pre> {| class="mw-collapsible mw-collapsed wikitable" ! colspan="2" | Example output of wmic (click to show) |- | <pre> Version=131.0.6778.265 </pre> |} {| class="mw-collapsible mw-collapsed wikitable" ! colspan="2" | Example output of reg (click to show) |- | <pre> HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon version REG_SZ 131.0.6778.265 </pre> |} Both PowerShell and Command Prompt methods will return the same version information. Choose whichever method is more convenient for your needs. === macOS === # Open Terminal # Enter the following command<ref>[https://superuser.com/questions/1144651/get-chrome-version-from-commandline-in-mac macos - Get chrome version from commandline in Mac - Super User]</ref>: <pre> ```bash /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version ``` </pre> Example output: <pre> ``` Google Chrome 131.0.6778.265 ``` </pre> == Troubleshooting == === Chrome --version Command Not Working as Expected === '''Issue''': Chrome --version Flag Launches Browser Instead of Displaying Version ``` "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --version Instead of showing the version information as expected, it simply launches the Chrome browser ``` '''Solution''': Please use the PowerShell, WMIC, REG and other methods described in the above paragraph == References == <references /> [[Category: Browser]] [[Category: Chrome]] [[Category: Web scraping]]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information