Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling an Exe file
Message
De
26/09/2002 19:45:10
 
 
À
26/09/2002 19:38:53
Terry Davis
Enhanced systems consulting
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00705024
Message ID:
00705029
Vues:
11
>Dumb question! How do you run an exe file from within a VFP7 program? The exe was not written in foxpro. It also requires parameters be passed to it.
>I tried
>
>run pbfe -ic:\file.in
>
>Thanks for your help.


There are different ways. One is with WSH:
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe",SW_SHOW_NORMAL,.T.)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform