Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Extention Associations
Message
From
06/03/2001 22:57:38
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00482492
Message ID:
00482559
Views:
8
>Does anyone know how to programatically associate a file extention with an executable?
>
>I know how to do this manually in explorer, but I need to do this in a setup program for an app.
>

It involves creating a set of registry keys; the first of which is HKEY_CLASSES_ROOT\file extension, which points to another entry in HKEY_CLASSES_ROOT defining the app and the set of OLE verbs it needs to support, as well as it's server app. You can figure this out by using REGEDIT to explore the setup of a standard file extensions, such as .TXT, and duplicating the registry key structure for your new file extension - this is exactly how Explorer works.
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
Next
Reply
Map
View

Click here to load this message in the networking platform