Hızlı yanıt: kod örneği
stackoverflow.com universal-path-to-chrome-exe
Chrome installs by default to the User's AppData Local folder:Best bet is to use some OS detection code, then use an environment variable to detect the User's folder (i.e. ) or the folder, and then append the difference in OS's to the end of the variable.
XP:C:\Documents and Settings\UserName\Local Settings\Application Data\Google\ChromeVista:C:\Users\UserName\AppDataLocal\Google\ChromeWindows 7:C:\Program Files (x86)\Google\ApplicationWin 7/8/10/11, (either):- C:\Program Files (x86)\Google\Chrome\Application- C:\Program Files\Google\Chrome\Application
AppData
%LOCALAPPDATA%
ProgramFiles