473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

mime types and default applications

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

Jun 20 '07 #1
3 1452
Hi,

I'm not very clear of what you want from your post, but you can search the
apps mapping by checking the registry.
"Patrick" <pa*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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

Jun 20 '07 #2
Yeah, I guess so. HKLM/Classes....Thanks for the input.

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:ui**************@TK2MSFTNGP06.phx.gbl...
Hi,

I'm not very clear of what you want from your post, but you can search the
apps mapping by checking the registry.
"Patrick" <pa*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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

Jun 20 '07 #3
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

"Patrick" <pa*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Yeah, I guess so. HKLM/Classes....Thanks for the input.

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:ui**************@TK2MSFTNGP06.phx.gbl...
>Hi,

I'm not very clear of what you want from your post, but you can search
the apps mapping by checking the registry.
"Patrick" <pa*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>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


Jun 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sugapablo | last post by:
Is there any PHP function that will allow me to determine the MIME type of a blob stored in MySQL? Specifically, if I'm storing an image as a blob in MySQL, is there any PHP function that can...
0
by: clevariant | last post by:
Hello, I'm tasked with creating a WSDL file that is compatible with .NET's code gen' tool, wsdl.exe. I'm getting an error in the code output saying "Missing soap:body input binding", which...
1
by: Michael Loughry | last post by:
I'm writing a web application that fetches documents from the server and sends them to the client. I do this using the Response.BinaryWrite method. However, is there any way to detect the MIME...
5
by: splodge | last post by:
This may seem like a stupid question but I want to check before I go ahead and build this... I am working on a portal, part of which allows users to upload files. Part of the array within...
0
by: mubx2000 | last post by:
Hi , I'm looking for code (Symbian C++) that can do the following things: 1-Analyzing the (MIME) types (Content-typemContent-transfere-encoding,Mime Version,Conent Description). 2-Download...
4
by: Sandman | last post by:
Hi there, So here is the situation I'm in. My PHP script does something like this: 1. Update a DB (only once) 2. Send some post data to another PHP script (only once) 3. Output some stuff...
0
by: Microsoft Newsserver | last post by:
One of my applications uses the style cursor:url('../images/mycursor.cur'); This can be set on the deploymnet server to serv this Mime type, but it wont serve it on the local server in 2005. ...
3
by: amit | last post by:
Hello group, I'm uploading some image files such as jpeg, png and gif. However, I must convert time to jpeg type. I have few questions: 1) Can I convert time in using gd library? 2)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.