The only trick I have found with this is that the description is different
depending on the software installed.
e.g. a .doc file description is different if Word is installed or not (if
not it is the wordpad registered description). This can be a trap if you
move your code to another server that does or doesn't have office installed.
Regards,
Ian
WSH FAQ www.windows-script.com
http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/d...
Quote:
> otype.htm
> Function ShowFolderType(filespec)
> Dim fso, f, s
> Set fso = CreateObject("Scripting.FileSystemObject")
> Set f = fso.GetFolder(filespec)
> s = UCase(f.Name) & " is a " & f.Type
> ShowFolderType = s
> End Function
> > Using the fso is there anyway I can get the description of a file (e.g.
> the
> > Desciption of a Word file, Html File, MPP File)?
> > Thanks In Advance,
> > Kevin.