MrDoomMaster
March 9th, 2005, 11:15 PM
I need a way to specify a path to a *.exe file and tell windows to execute that program.
|
Click to See Complete Forum and Search --> : How to open another program MrDoomMaster March 9th, 2005, 11:15 PM I need a way to specify a path to a *.exe file and tell windows to execute that program. Naumaan March 9th, 2005, 11:31 PM Try to Use ShellExecute or ShellExecuteEx or WinExec functions to execute another application from ur code. Ejaz March 10th, 2005, 02:18 AM I need a way to specify a path to a *.exe file and tell windows to execute that program. What you mean by specifying a path to a*.exe? For launching the application, as already mentioned, you can use ShellExecute or CreateProcess. For details, have a look at Processes: How can I start a process? (http://www.codeguru.com/forum/showthread.php?t=302501) Furthermore, note that WinExec() is provided only for compatibility with 16-bit Windows and should not be used any longer. MrDoomMaster March 10th, 2005, 04:10 PM Thanks guys, I found out about CreateProcess and I used that. It works perfectly. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |