Launching a program according to file extension
-
Does anyone know how to get a full path to a program registered under windows for a certain file extension? For example: if a given file extension is .xls how is it possible to find Microsoft Excel executable file path to run the xls file ? Any other ways except scanning registry? Any windows API's?
-
Does anyone know how to get a full path to a program registered under windows for a certain file extension? For example: if a given file extension is .xls how is it possible to find Microsoft Excel executable file path to run the xls file ? Any other ways except scanning registry? Any windows API's?
Just run Exel (through ShellExecute() for example). It is registered, so the system s knows already where it is :-) SkyWalker
-
Does anyone know how to get a full path to a program registered under windows for a certain file extension? For example: if a given file extension is .xls how is it possible to find Microsoft Excel executable file path to run the xls file ? Any other ways except scanning registry? Any windows API's?
You can use
AssocQueryString()
orFindExecutable()
.
"Take only what you need and leave the land as you found it." - Native American Proverb
-
You can use
AssocQueryString()
orFindExecutable()
.
"Take only what you need and leave the land as you found it." - Native American Proverb
Thank you very match. That's what I was looking for.