- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my application, users display a list of metadata files associated with the work they are doing. The files could be of any type - Word docs, Excel spreadsheets, PDFs, plain text, etc. I want them to be able to select a file from the list and have the appropriate program open it. I presume I need to get the file extension and do some sort of search through the registry but my attempts so far have failed. Any suggestions gratefully received.
With many thanks in advance,
Mike
With many thanks in advance,
Mike
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - michaelgreen
In my application, users display a list of metadata files associated with the work they are doing. The files could be of any type - Word docs, Excel spreadsheets, PDFs, plain text, etc. I want them to be able to select a file from the list and have the appropriate program open it. I presume I need to get the file extension and do some sort of search through the registry but my attempts so far have failed. Any suggestions gratefully received.
With many thanks in advance,
Mike
With many thanks in advance,
Mike
what about using ShellExecute (here an example and here an update and error codes) for that?
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - ArturGuzik
Hi Mike,
what about using ShellExecute (here an example and here an update and error codes) for that?
A.
what about using ShellExecute (here an example and here an update and error codes) for that?
A.
Many thanks - that was so easy.
Mike

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page