file type
FileInfo doesn't give file type descriptions. Is file type info available from .NET?
[89 byte] By [
FoodBard] at [2007-11-19 22:47:57]

# 1 Re: file type
What do you mean by file type ? Bear in mind if you're thinking what I think your thinking (i.e. that the extension should determine the file type) that file type is generic - i.e. it's dependent on how many software companies in the world choose to use different extensions.
If you want to fire up the associated application for a particular file try this :
string sFile = "whatever.whatever";
System.Diagnostics.Process.Start(sFile);
By using this code you don't have to worry about file type : the framework works out which application needs to be started to process the file.
Darwen.
darwen at 2007-11-9 11:22:54 >

# 2 Re: file type
Yes, I want to display the file type from the extension as determined by the user's machine.
Usually the SHGetFileInfo API gives it under TypeName.
I'm just displaying info, not running the file. Is API the only way?