Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opção ao comando RUN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00687999
Message ID:
00688072
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Vi que alguns amigos usam um componente ao contrário de usar o run. Poderiam me dizer qual e um pequeno exemplo (executar um arquivo teste.bat)

Pode usar Windows Script Host (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.)
veja mas no Wiki: http://fox.wikis.com/wc.dll?Wiki~WindowsScriptingHost


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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform