mime types and default applications

  • Thread starter Thread starter Patrick
  • Start date Start date
P

Patrick

Hello all,
Using csharp, how would I get the application name that opens any given
extension?
I'm interoping with Office to provide an in house service to convert office
files to pdf.
Provided a file path, I need to determine if the file is excel, word,
etc...and I don't want to simply
rely on a HashTable of extension keys and application names to accomplish
this.
Any help or direction is greatly appreciated.

Sincerely,
Patrick
 
Hi,

I'm not very clear of what you want from your post, but you can search the
apps mapping by checking the registry.
 
That's not entirely reliable. Your best bet is to create a MIME type table,
such as that used by Internet Information Services. It can be a flat file or
stored in a database.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top