Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opção ao comando RUN
Message
From
09/08/2002 12:47:44
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00687999
Message ID:
00688072
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform