If you want to get what the researcher really shows, and are ready to use the COM operator, you can use the Shell.Application class to get it with a minimal amount of code. If you add the link, go to X: \ windows \ system32 \ shell32.dll, which will import the shell32 type library. Then just use the code:
string GetFileType (string path)
{
Shell32.ShellClass shell = new Shell32.ShellClass ();
Shell32.Folder folder = shell.NameSpace (Path.GetDirectoryName (path));
Shell32.FolderItem item = folder.ParseName (Path.GetFileName (path));
return folder.GetDetailsOf (item, 2);
} source
share