Running application from cpp | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Running application from cpp

when I was working with .bat files, I could open an application from within my file running, is there a way to do that with c++? and how

10th Apr 2017, 2:41 PM
Adam Dewitt
Adam Dewitt - avatar
4 Answers
+ 9
Yeah, use CreateProcess() on Windows using Win32 API.
10th Apr 2017, 2:48 PM
Karl T.
Karl T. - avatar
+ 9
I don't know, maybe fork()?
10th Apr 2017, 2:53 PM
Karl T.
Karl T. - avatar
+ 8
10th Apr 2017, 3:15 PM
Burey
Burey - avatar
+ 1
how about for Linux?
10th Apr 2017, 2:50 PM
Adam Dewitt
Adam Dewitt - avatar