Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program associations with extensions
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00293841
Message ID:
00293856
Views:
20
>>Does anyone know how to associated a certain extension with a program, using VFP or VFP API calls. I would like to associate the TIF extension with the wang imager windows 95 and with kodak imager for windows 98. Users can't seem to do this on their own. I have been doing it manually for so long it is second nature, but I cant get a 50 year old engineer to understand the concept even with the best documentation I could create.
>
>There is no API to do this directly- the only way to do it is by adjusting the registry entries in HKEY_CLASSES_ROOT. YOu can use the Registry class in the FFCclasses, or any one of several available for download here.
>
>To figure out what to do, look up .tif and .tiff in your registry (one that has already been set the way you want it), and see what File class they are a member of. On my machine they are of TIFImage.Document. You then would then look up TIFImage.Document in the lower half of HKCR, and navigate to the string contained in HKEY_CLASSES_ROOT\TIFImage.Document\shell\open\command. My machine has "C:\Program Files\Windows NT\Accessories\ImageVue\WangImg.Exe "%1"".
>
>THese are the minimum requirements for a file association.

Thanks Erik I will give this the old college try (Indiana State not Indiana University)....
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform