Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Function to get Type File
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00664556
Message ID:
00664657
Vues:
22
>>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")
>* lcfile is the file of interest
>oFile = oFSO.GetFile(lcfile)
>? oFile.Type
Great!
Thank you George.
Do you know where can I find documentation about WSH ?

Thank again.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform