Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a .exe from within another .exe
Message
From
24/04/1998 13:28:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00094707
Message ID:
00094712
Views:
18
>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
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform