Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
! with no windows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00811823
Message ID:
00811831
Vues:
11
>Hi Everybody,
>
>I use "!" to run an external program. When it runs, a black window is opened and closed (look like when you go to command prompt). How can I execute that program without that black window being shown?
>
>Thank you,
>Ali


You could use WSH or API ShellExecute.
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
#define SW_ASYNC .F.
#define SW_SYNC .T.
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe",SW_SHOW_NORMAL,SW_SYNC)


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