0

Executing another program

hello i wonder how to start another program using terms ... something like int a cout<<"choose your program 1 for chrome 2 for vlc player"<< endl; cin <<a<< if (a=1) system(path to chrome) if (a=2) system(path to vlc) i am kinda new to c++ so i will be gratefull for any help thanks

18th Feb 2017, 5:45 PM
David Neo Hrdý
David Neo Hrdý - avatar
2 Respuestas
+ 2
maybe use system("start example.exe")
19th Feb 2017, 4:49 AM
sebipincha
sebipincha - avatar
0
(start example.exe) is working with chrome but not with vlc
19th Feb 2017, 1:44 PM
David Neo Hrdý
David Neo Hrdý - avatar