Hi there,

If you do not know the path to an .exe on a users machine, how do you find
it out?

I am in the process of completing an application which views Architectural
drawings using VB6.0. My problem is that I have to allow users the option
to select a drawing name from a treeview node in my application and then
let them click a "Link To AutoCAD" button. The purpose of which is to open
up AutoCAD and show the particular drawing. This is all very well and good
if I know the version of AutoCAD that they are using and the path of the
AutoCAD executable (I can use the Shell Function).

However, my problem is that I do not know the path to the AutoCAD exe or
the version. I want my program to be able to automatically open up a program
to view the drawings and very simply I do not know how to do this. I know
that Windows will open up a file if double clicked with the appropriate program
i.e. a .doc file will be opened in Word, etc. Is there a way for me to do
this from my program?

I have been looking at various API calls, but I am confused as to which one
to use and how!


Cheers,
Rebecca