>Hi:
>
>What API function I need to get the type of a file ?
>For example, in Microsoft Explorer, the columns at the right side of the window folder, show the files in the folder organized in columns as "name", "size", "type", "modified", etc.
>
>I need to retrive from a file the "type" string, for example:
>"Application", "Configuration Settings","File Folder", "Bitmap image", etc.
>
>Thanks.
If the Windows Script Host is an option, it's the easiest
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.GetFile(lcfile)
? oFile.Type
George
Ubi caritas et amor, deus ibi est