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:
00326492
Views:
27
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.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform