Sadly the exe locations are usually defined in the registry for example. I have .txt defined as opening with "notepad++".
So to find what the association of the file is, I'd have to go to:
"Open Control Panel > Control Panel Home > Default Programs > Set Associations".
From there it'd show Notepad++ is my default program.
I'd then have to go to the registry for Notepad++ e.g.:
And see the complete file location there something like:
Every program you install typically has a registry associated with it, where it can be configured.
Most programs details can be found in:
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node" (64 bit)
"HKEY_LOCAL_MACHINE\SOFTWARE\" (32 bit)
So you'd need to use regedit.exe to these locations, find your program and view the location of the exe