|
-
Dec 2nd, 2006, 06:23 AM
#1
Thread Starter
Addicted Member
Run another exe and it's command?
How can I create another program from the primary/main program.
Like press a button and write/export an already compiled exe stored in a resource file or something. Or some other way of doing it.
Then run that .exe and use it's commands?
Like use the first program to tell the second program to pop up a message box?
-
Dec 2nd, 2006, 06:41 AM
#2
Re: Run another exe and it's command?
-
Dec 2nd, 2006, 07:55 AM
#3
Re: Run another exe and it's command?
Check the ShellExecute API function. This API can be used to run another exe with various options.
Pradeep
-
Dec 2nd, 2006, 02:32 PM
#4
Thread Starter
Addicted Member
Re: Run another exe and it's command?
Thanks. I think that's what I need.
How do I use the ShellExecute API? All I found was how to run a webbrowser (mostly).
How do I use ShellExecute with a program that I've made?
Like do what's in Command1_Click()?
And would that execute the program each time I do it?
I only want to run it once, then command/use it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|