'Google Chrome Path in Windows 10
Google repeatedly changed the path to the .exe of Chrome. Sometimes it's hidden in %APPDATA%, in Version 35/36 they changed the path back to program files. There are also differencies across the Windows versions.
Where is Google Chrome located in Windows 10?
Solution 1:[1]
Please see the screenshot which gives you the ability to seek for the current path of google chrome path or any other application Task Manager - Windows 10
Solution 2:[2]
Windows 10:
- %ProgramFiles%\Google\Chrome\Application\chrome.exe
- %ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe
- %LocalAppData%\Google\Chrome\Application\chrome.exe
Windows 7:
- C:\Program Files (x86)\Google\Application\chrome.exe
Vista:
- C:\Users\UserName\AppDataLocal\Google\Chrome
XP:
- C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome
There are also Registry Keys and environment variables to use. Check out this post for universal use for programming.
Solution 3:[3]
Chrome can be installed in various places on Windows, for a given user or "all users", in which case it's installed in Program Files.
To determine where it is programmatically:
Batch file:
set exe=
FOR /F "tokens=2* skip=2" %%a in ('reg query HKCR\ChromeHTML\shell\open\command /ve') do set exe=%%b
set exe=%exe:"=%
set exe=%exe:~0,-6%
PowerShell:
(gp Registry::HKCR\ChromeHTML\shell\open\command)."(Default)" -match '"(.*?)"' | Out-Null
$exe=$matches[1]
C#:
var exe = System.Text.RegularExpressions.Regex.Match((string)Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(@"ChromeHTML\shell\open\command").GetValue(null),
@"""(.*?)""",
System.Text.RegularExpressions.RegexOptions.None)
.Groups[1].Value;
Python
import winreg
import re
command = winreg.QueryValueEx(winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, "ChromeHTML\\shell\open\\command", 0, winreg.KEY_READ), "")[0]
exe=re.search("\"(.*?)\"", command).group(1)
VBA / VBScript
Set objShell = CreateObject("WScript.Shell")
cmd = objShell.RegRead("HKCR\ChromeHTML\shell\open\command\")
exe = Mid(cmd, 2, 999)
exe = Left(exe, InStr(exe, Chr(34)) - 1)
Solution 4:[4]
The answer I am writing is applicable for any software/application installed on windows.
Windows 10Click on windows button and search for the application, in this case Chrome. Right click on application name and click on "Open file location".
You will reach at location of the shortcut of that application. Again right click on the application shortcut and then click on "Open file location".
And you will get your path for desired application.
PS: Doesn't works for apps installed from windows store.
Solution 5:[5]
Right click on the sub process to see the open file location :
Solution 6:[6]
To find the location of Google, type the following command...
chrome://version
And then look for Command Line on the left side of the screen.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ahmad Hindash |
Solution 2 | |
Solution 3 | zumalifeguard |
Solution 4 | TwoFingerRightClick |
Solution 5 | Ajana Sathian |
Solution 6 | Apoorv Pathak |