Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run
Message
From
25/03/2003 06:16:13
 
 
To
25/03/2003 04:11:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Run
Miscellaneous
Thread ID:
00769603
Message ID:
00769618
Views:
17
>Hi I am using VFP 6
>I want to run an external windows program but when i run it with RUN command
>my program stop executing until closing the called program.
>How can I tell my program to continue exuting after calling an external windows program



You can use WIndows Script Host:
#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,.F.)
The last parameter controls if you run synchronously or asynchronously (e.g. wait for it to complete, or not).

HTH


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