Find a Application Fullname, through VBA, eg: chrome.exe'Fullname

drom

Well-known Member
Joined
Mar 20, 2005
Messages
528
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!

I my PC, Chrome.exe file application is located within the folder:

  • C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
    • So My chrome.exe FullName is:
      • C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
But in some computers is located on:
  • C:\Program Files\Google\Chrome\Application\
So I would like to find chrome.exe full path in a PC (mine, yours...)


ps: At persent I am getting the Chrome fullname, going through every Folder/File I have in my Drives...
  • \Subfolders\ Files
But this is taking to long, and ovbiously is not a good aproach (Works but the way is not good)

Any Help
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
If Chrome is the default application for a specific file type, for example .htm or .html files, you can find its full file name by using one of the methods described by @Jaafar Tribak in this thread:

 
Upvote 0
Looks like doing this works Fine
VBA Code:
Dim WSHShell As Object:               Set WSHShell = CreateObject("WScript.Shell")
Dim wChromePath As String'            Chrome.exe
    wChromePath = WSHShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe\")
    Shell (wChromePath & " -url -newtab " & rCell.Hyperlinks(1).Address) 'hl)

In my PC Chrome is not the default application for htm files
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top