How to execute another exe from a C++ program in Windows

前端 未结 5 1362
迷失自我
迷失自我 2020-12-10 07:06

I want my C++ program to execute another .exe, in Windows. How would I do this? I am using Visual C++ 2010.

Here is my code

#include \"stdafx.h\"
#in         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 07:56

    You can make a call using system

    system("./some_command")
    

提交回复
热议问题