Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API Function to get Type File
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00664556
Message ID:
00664657
Views:
23
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform