Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining A File's Type
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00326276
Message ID:
00326505
Views:
28
Hi Kevin,

PMFJI, but the registered extensions are not completely reliable. For example, on my machine Imaging for Windows has registered the DCX extension as a "DCX Image Document", and Windows Scripting has hijacked the SCT extension as a "Window Script Component". There is nothing really preventing an application from registering any given extension as it's own under current Windows OS's.

>George,
>
>I ran the following:
>
>oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>oFile = oFSO.GetFile(cFile)
>?oFile.Type
>
>on each file in a folder.
>
>Most VFP files are list as
>'Microsoft Visual FoxPro Menu/Report/Labels....'
>
>However, PRG's are listed as 'Microsoft FoxPro for Windows'.
>
>What I really like to do is handle the user picking certain types
>of files. Can I rely on these return values to be the same on all
>PC's. Probably not, but I thought I'd ask.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform