Click to See Complete Forum and Search --> : File Extensions & Associations


ThomasB
July 10th, 2001, 03:25 AM
Hi,
One of my self-written Programs stores data in files with a own extension.
I want to make a association, so that I only have to double click on the data file and it is open with my application.
I know how to do this in windows, but i want want my program to check, if theres an association with this file type, and if not, ask, if he should create one (and then do this)

But I don't know
a) how to check an association
b) how to create an association
(with visual baisc)

thx,
Tom

Cimperiali
July 10th, 2001, 04:10 AM
You will find all answers here:
http://www.mvps.org/vbnet/code/system/findexecutable.htm
http://www.mvps.org/vbnet/code/reg/regfileassociations.htm
http://www.mvps.org/vbnet/code/reg/association.htm

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.