How to launch exe file with command line?
-
I used Win32 and MFC. I try launch exe file with commands line. How to this? example: "c:\dir1\form.exe cmd1" thanks
-
I used Win32 and MFC. I try launch exe file with commands line. How to this? example: "c:\dir1\form.exe cmd1" thanks
Assuming you want to do this programmatically, you could use the CreateProcess() API - check out the first two parameters. There's more useful info at Michael Dunn's MFC FAQs[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I used Win32 and MFC. I try launch exe file with commands line. How to this? example: "c:\dir1\form.exe cmd1" thanks
Does
ShellExecute
helpful? -
I used Win32 and MFC. I try launch exe file with commands line. How to this? example: "c:\dir1\form.exe cmd1" thanks
Take a look at ShellExecuteEx() in MSDN. (Hint: you need the _T("open") verb.)