Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running an EXE from an EXE
Message
From
08/12/2007 17:11:19
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
08/12/2007 10:19:20
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01274149
Message ID:
01274207
Views:
12
>>What is the best way (whatever that really means) to run an EXE from another EXE?
>
>
>DECLARE INTEGER ShellExecute IN shell32;
>    INTEGER hwnd,;
>    STRING  lpOperation,;
>    STRING  lpFile,;
>    STRING  lpParameters,;
>    STRING  lpDirectory,;
>    INTEGER nShowCmd
>
>lcEXEName = 'yourexe.exe'
>ShellExecute(0, 'Open', lcEXEName, '', '', 0)
>
Cool. For extra credit, how can I force the same EXE to close? Looked up ShellExectute function but couldn't find that it did that.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform