Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program Association
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01203303
Message ID:
01203324
Vues:
19
>>>Is there a way to run a file and based on the users program association to the file type, the program will execute and VFP to wait till the program is closed. I know this can be done if you use something like API_APPRUN but I do not know the exe that is associated with the file type.
>>
>>You can use WSH Run method http://msdn.microsoft.com/library/en-us/script56/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp
>>
>>oShell = CREATEOBJECT('WScript.Shell')
>>oShell.Run(lcFileName,1, .T.)
>>
>
> Thank You Very Much....

If WSH is not an option you can use a combination of FindExecutable and API_APPRUN. See Re: Initiate Adobe Acrobat Programatically Message #1078909 for sample code.
You can also use GetAssocExecutable method of IconBuddy for Visual FoxPro 6 and 7 Version 1.3 File #15832
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform