Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the application associated with a file extension

2 views
Skip to first unread message

David Taylor

unread,
Oct 7, 2009, 8:02:59 AM10/7/09
to
My app stores file names in a table on a server database. A MS Access front
end mdb tries to open these files using application.followhyperlink
strFileName.
Recently this has failed for .pdf files. But this is not the problem I wish
to address here (although suggestions and/or solutions are welcome).
I wish to bypass this error by using the shell function.
My question is how to retrieve the name of the program that is registered to
run a particular file extension (.pdf in this instance) from the registry on
the client computers.

Thanks

DT


Karl E. Peterson

unread,
Oct 7, 2009, 2:39:17 PM10/7/09
to

You can get the launch command for any associated verb with AssocQueryString.

See http://vb.mvps.org/samples/Assoc for drop-in ready code.

Requires IE5+ on NT4/9x systems.
--
.NET: It's About Trust!
http://vfred.mvps.org


0 new messages