Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a .exe from within another .exe
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00094707
Message ID:
00094726
Views:
21
>>I am developing in VFP 3.0 on a W3.1 platform.
>>
>>I have 2 executables.
>>
>>If I run each .exe separately from Program Manager, I get two separate "Tasks" in the Task List and I can alt-tab between the two at will.
>>
>>If I run the second .exe from within the first .exe (using "do xyz.exe"), there is only one "Task" and exiting the second .exe also ends the first .exe because of the CLEAR EVENTS line.
>>
>>I would like to start the second .exe from within the first and have it be a completely seperate app within Windows.
>>
>>Any and all help would be greatly appreciated.
>>
>>Thanks,
>>
>>Rob
>
>I believe you need to use a Win32API function such as ShellExecute() or CreateProcess() from within your first EXE. George Tasker is da man for the Win32API stuff. Is this correct George?
>
>Bill

Unfortunately, he's running under 16 bit Windows. However, the ShellExecute function does exist in Shell.dll, and there's also WinExec(). I don't think that I can be of more help than this, since I don't have a version of 3.1 available for testing. BTW, he'd have to used the old RegFN() and CallFN() functions in foxtools to do this.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform