Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run an external program and wait until it will finish
Message
From
18/12/2006 12:07:31
 
 
To
18/12/2006 12:01:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01178595
Message ID:
01178599
Views:
68
This message has been marked as the solution to the initial question of the thread.
>I run an external program using ShellExecute that convert some data that I have to process, my problem is how instruct my program to wait until the external program will finish. I can not modify the external program.

Ciao Luigi:

You can do it 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.)
or

ShellExecute (Windows API): see message#966019


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