Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto check if file extension is associated with applica
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00656783
Message ID:
00657223
Views:
23
Alexander,

>But one problem still exists. In some cases I'm creating document file (.pdf or .rtf) before opening. And I cannot pass file name to FindExecutable because file not yet created. Adding of two dummy files to application is not a very good solution.

Sergey already made a good and *easy* suggestion.

You could also scan the registry keys under HKEY_CLASSES_ROOT. If you find an entry that matches the desired extension, there will be a registered application. There are two more API functions that could help, I've tried one, but couldn't get it to run.

IMO, creating a dummy file in the temp dir on the fly is a good, quick and easy solution.

Reagards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform