I am trying to get the associated program of a file, for example
if I have a file C:/foo/bar.example
I want to get what program
opens .example
(Kind of like Notepad.exe opens .txt Files).
I tried creating a process to open that file using runtime.exec("rundll32 url.dll,FileProtocolHandler C:/foo/bar.example")
but there is no way to get the associated application using Process.
This example shows what I am trying to achieve in Windows, although I want something cross platform.