Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and launch an external program
Message
De
07/09/2000 11:19:58
 
 
À
07/09/2000 10:56:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00413523
Message ID:
00413550
Vues:
12
Hi

If you know the file extention you can use the FindExecutable API function, this will return the associated exe of a file.

lcApplication=Findexecutable("c:\test.html")

this will return the location and name of your computers default browser.

Once you have the exe, you can use Shellexecute to launch the program.

Or you could just use the file to lunch the application

lnReturnValue=shellexecute(0,"OPEN, ""c:\test.html","","",1)

You will have to load these API in fox before you use them

Both these API are documented in the API section



Hope this helps

Steven Bowskill
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform