running exes
-
I know this is a simple question but i can't seem to find the answer on MSDN. Does anyone know how to run an exe with a command line style argument out of an MFC program? Cheers Dor
You can use ShellExecute(...) For more info you can see this article :- http://www.codeproject.com/useritems/newbiespawn.asp Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
I know this is a simple question but i can't seem to find the answer on MSDN. Does anyone know how to run an exe with a command line style argument out of an MFC program? Cheers Dor
-
I know this is a simple question but i can't seem to find the answer on MSDN. Does anyone know how to run an exe with a command line style argument out of an MFC program? Cheers Dor
If I don't make a mistake there is win32 function name
CreateProcess()
. Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd -
You can use ShellExecute(...) For more info you can see this article :- http://www.codeproject.com/useritems/newbiespawn.asp Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Nish [BusterBoy] wrote: You can use ShellExecute(...) Your obsessed with ShellExecute Nish... well.. I suppose with all the pushing Microsoft are doing on it :)
"Isn't that the "write once, debug everywhere" language?" Tom Archer on Java... :)
-
Nish [BusterBoy] wrote: You can use ShellExecute(...) Your obsessed with ShellExecute Nish... well.. I suppose with all the pushing Microsoft are doing on it :)
"Isn't that the "write once, debug everywhere" language?" Tom Archer on Java... :)
Brian Delahunty wrote: Your obsessed with ShellExecute Nish... I am? Nish :(
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
I know this is a simple question but i can't seem to find the answer on MSDN. Does anyone know how to run an exe with a command line style argument out of an MFC program? Cheers Dor
If you don't want to wait for the new process to finish just use WinExec or ShellExecute. If you need to wait use CreateProcess. Like it or not, I'm right.