Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry Calls to find Associated EXE for .BMP, .DOC, et
Message
 
 
À
19/07/1999 11:44:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00243126
Message ID:
00243386
Vues:
23
Bob,

If the intent is merely to launch the right app you really don't have to go through all that effort to find the actual exe, you can just use ShellExecute() there are examples under Q&A, General on my website. In VFP6 there is the _ShellExecute class which is similar to the one on my site.

>I need to find the associated EXE of any file based on its extension and then execute the EXE with its associated file on the command line. Like you would if you double clicked on a .BMP, .DOC, etc. in the Windows Explorer.
>
>I'm sure someone has already done this using the Registry Class.
>
>Can someone please point me to some sample code?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform