Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running an EXE from an EXE
Message
From
08/12/2007 18:43:54
 
 
To
08/12/2007 17:11:19
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01274149
Message ID:
01274215
Views:
10
>>>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.

Maybe thread#890217 can give you some tips?
Previous
Reply
Map
View

Click here to load this message in the networking platform