I need a way to specify a path to a *.exe file and tell windows to execute that program.
Printable View
I need a way to specify a path to a *.exe file and tell windows to execute that program.
Try to Use ShellExecute or ShellExecuteEx or WinExec functions to execute another application from ur code.
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?Quote:
Originally Posted by MrDoomMaster
Furthermore, note that WinExec() is provided only for compatibility with 16-bit Windows and should not be used any longer.
Thanks guys, I found out about CreateProcess and I used that. It works perfectly.