Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run a windows exe from Fox
Message
De
18/09/2001 11:23:52
 
 
À
18/09/2001 11:17:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00557865
Message ID:
00557879
Vues:
15
>>Is there a simple way to fire up a small windows exe prog from inside my Fox app - as in the MSDOS ! and RUN commands. I know how to automate e.g. Word but can't seem to start another small exe. Createprocess?? Excuse ignorance ... and thanks.
>
>Probably other members of the UT will jump in and show how to use the Windows API. However, the simplest method is:
>
>
>* Example: run calculator
>run /n calc.exe
>
>
>HTH, Hilmar.

Or the WSH:
oWS = CreateObject("Wscript.Shell")
oWS.Run("C:\my path\someapp.exe",1)
As somebody else said here (don't remember), "in Fox there are at least three ways of doing the same thing"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform