Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute wait for completion
Message
From
02/07/2007 13:00:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
ShellExecute wait for completion
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01237168
Message ID:
01237168
Views:
356
Is there a way to make VFP wait until the "launch.exe" program terminates in the code shown? (Sort of like the way RUN works by default)

DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
INTEGER hwnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd

=Shellexecute(0,"Open","launch.exe","","F:\Develop\Tarma\iePoint2007CD\",0)
Next
Reply
Map
View

Click here to load this message in the networking platform