Again, thanx to all who replied,
I wanted to stay away from querying the registry continuously as it
not only noticeably slows down this operation but the more times I run it
the slower it seems to get! Anyone else seen this with the registry?
Anyway, I'm updating an app I wrote some time back for a guy and
wanted to automate this part of it. It basically provides file launching
and in the original version the user made a choice at the time a file is
added to the launcher if it should be made to run as a filename or a
parameter. If the latter, the user could then decide to run it using its
registered application or a named secondary application. If it was a data
file this works great but if an exe or some other stand-alone type it was
confusing. The various methods for checking if it had a registered
application and if so what its path and name is was too slow, so I
considered building my own list when a file is used the first time. That
was much faster, but the user still was faced with making a decision for
each file. So finally I decided to store a string of delimited stand-alone
file-extensions and check against it when the file is being used. If not
one of these types it gets used as a parameter, otherwise it goes in as a
filename. This is a much shorter list and a lot faster, plus new types can
be added to the list by the user anytime wanted.
from Robert Meek dba "Tangentals Design"
e-mail: [EMAIL PROTECTED]
Freelance Windows Programming for XP and Vista
Also proud to be a Moderator of the "Delphi-List" at elists.org
"Reality cannot be explained...only enjoyed or endured as your current
perspective allows!"
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of CubicDesign
Sent: Monday, May 19, 2008 11:24 AM
To: Borland's Delphi Discussion List
Subject: Re: Help w/Registered File Types
Oh... I forgot.
The registry path where this association is keep, is HKey_classes_root.
Robert Meek wrote:
> Morning all,
> I have an urgent need that I hope someone here can help me figure
out
> how to handle, involving how to find out the full path and filename of
> an application via it being the registered file type for a selected
> data file!
> In my application, the user selects a data file, for example a .doc
> file which on most systems will be registered to open with Microsoft
> Word. How can my application find out if it has a registered
> application, what its registered application is, and return the path
> and filename of it to the user without actually launching the data file?
> Thanx in advance for any help!
>
> from Robert Meek dba "Tangentals Design"
> e-mail: [EMAIL PROTECTED]
> Freelance Windows Programming for XP and Vista
> Also proud to be a Moderator of the "Delphi-List" at elists.org
>
> "Reality cannot be explained...only enjoyed or endured as your current
> perspective allows!"
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
>
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi