Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine file association options?
Message
From
14/11/2001 04:26:27
 
 
To
13/11/2001 17:44:55
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00581203
Message ID:
00581360
Views:
28
Hi!

Aboutr "summoning" (I like this word ;) take a look to the ShelExecute() API function. It is usually used with the "Open" option that is equivalent to the double clicking on the file in explorer. You can use other commands here, for example, "Print" to pring Word document.

The list of commands is probably somewhere in the registry - do not know exactly where, but it is probably easy to find using all related information describing .DOC extension in the registry.

HTH.

>When you right click on a file in Explorer, Explorer presents you with a list of options dependent on the file extension of the file you clicked on. For example, clicking on a Word document will typically show the following options at the top of the right click menu (this list will be be dependent on the OS and applications installed on one's workstation)
>
>Open
>New
>Print
>Open With
>etc.
>
>Is there a way to determine which options (Open, New, Print ...) are associated with a particular file extension so we could provide users with a similar list of options if they right click on a file within our application? Or is there a way to 'summon' the Explorer equivalent of this right click menu via Windows API voodoo?
>
>For anyone following this thread, Daniel Gramunt was gracious enough to explain how to verify that a valid application is associated with a specific file extension - see thread 581172 for Dan's help (Thanks!)
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform