Running program from the path / file name

fshrago

Member
Joined
Sep 6, 2006
Messages
11
Programming Experience
5-10
Sorry, couldn't think of a better title for this.

Anyway, I have someone who want to store the location of different files in a database (eg: c:\test\wordfile.doc) and for the program to load the associated program when the link is clicked.

Storing and displaying these in a form is relatively easy, I am totally as to how to run the associated program. eg. if a .doc file is clicked, launch word, .xls, launch Excel. Obviously there could be an infinite number of possible extensions and associated programs. I also need to catch the case of the link being dead.

Any thoughts?
 
I know this is a bit of a thread bump, but Cheers JuggaloBrotha, this has helped me with some of my functionality for the system I am designing:)
 
Back
Top