We would like to programmatically confirm that a program has been associated with a specific file extension before trying to launch the file using the ShellExec API.
By programmatically confirm, I mean that we would like to make sure that:
1. A program has been associated with the given file extension
2. That the referenced program actually exists
We would use this information to enable/disable specific files from being clicked on if a user's workstation didn't have a valid application associated with the file in question.
Any thoughts on how we might do this?
Thanks!
Malcolm