Or if it's not a programmatic solution you are after (or you want to
test your results), use the following at the cmd line

C:\>ASSOC .pdf 

This should return something like ".pdf=AcroExch.Document"
Then use

C:\>FTYPE AcroExch.Document
To get the associated app


> -----Original Message-----
> From: Discussion of advanced .NET topics. 
> [mailto:[EMAIL PROTECTED] On Behalf Of Phil Sayers
> Sent: 01 November 2006 16:01
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: [ADVANCED-DOTNET] Associated File Extensions...
> 
> it's a registry query.
> 
> look in HKeyclassesroot to find the file extension.
> that may point you to another node in HKCR, which will have a 
> sub-node or sub-sub node called "shell" or "opens with"
> 
> i'm guessing here based on what i see in my own local registry.
> 
> 
> -----Original Message-----
> From: Discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] Behalf Of Mike Andrews
> Sent: Wednesday, November 01, 2006 10:48 AM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] Associated File Extensions...
> 
> 
> Guys,
> 
> I need to know how to retrieve the associated executable for 
> an existing file extension.
> 
> Example:
> 
> I want to know the path and executable name for a xxx.pdf file.
> 
> Any suggestions?
> 
> Thanks,
> Mike
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at 
> http://discuss.develop.com
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at 
> http://discuss.develop.com
> 
> 
> 

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to