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:
00326506
Views:
30
>What I mean is, the user could pick any file. There are any number of file types on any given PC. I want to determine what type of file it is.
>
>So if the user selected MyFile.DOC, I can determine that it's a Word document. If the user picks Someform.Scx, I can determine that it's a VFP form. But I won't know in code what the extension is, or what type of file it represents.

If it's registered, there'll be an entry in HKEY_CLASSES_ROOT\.file extension; the default value gives the name of a file type registration. HKEY_CLASSES_ROOT\file type registration has a description in its default value.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform