I use the codes below to get the type of files.
string ext = Path.GetExtension(sFileName);
string desc = (string)Registry.ClassesRoot.OpenSubKey(ext).GetValue(null);
typeinfo = (string)Registry.ClassesRoot.OpenSubKey(desc).GetValue(null);
how to get the type of folders?
Thanks.