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

File associations

0 views
Skip to first unread message

Martin Trump

unread,
Jul 20, 2009, 8:57:43 AM7/20/09
to
I've written my own program similar to the Win XP Search one for finding
files. It works well so far but I've fallen at the last <?> hurdle.

Example. I find c:\mydir\memo.txt. I'd like to be able to double click
on it and have it open in Notepad. I understand file associations are
stored in the registry. One I don't understand how it works, two given
my level of skill I'd rather not dabble there. Can I make my own list of
associations and use that?

Help appreciated, TIA.

Martin

Jim Mack

unread,
Jul 20, 2009, 9:03:59 AM7/20/09
to

I think that if the associated extension has an 'open' verb in its
registry entry, all you need to do is use ShellExecute.

--
Jim Mack
Twisted tees at http://www.cafepress.com/2050inc
"We sew confusion"

Martin Trump

unread,
Nov 10, 2009, 12:21:12 PM11/10/09
to
Thanks Jim

> I think that if the associated extension has an 'open' verb in its
> registry entry, all you need to do is use ShellExecute.

Would you be kind enough to expand on that for a not too skilled VBer?
TIA

Heinrich Pfeifer

unread,
Nov 16, 2009, 2:19:34 AM11/16/09
to

"Martin Trump" <mar...@wmeadow.demon.co.uk> wrote in Newsbeitrag
news:JhhKm.656$eE7...@newsfe17.ams2...


ShellExecute 0, "open", filename, "", app.path, 1


--

Heinrich
http://www.gartrip.de
mail: new<at>gartrip.de


0 new messages