how can we use a batch file in c++?

前端 未结 6 2163
一整个雨季
一整个雨季 2020-12-15 09:36

MY PURPOSE: I want to make a c++ program that could use DOS commands.

OPTION: I can make a batch file and put into it the DOS commands. But I don\'t know how

6条回答
  •  佛祖请我去吃肉
    2020-12-15 10:00

    You probably want to look at the system, ShellExecute, and CreateProcess calls, to figure out which one is appropriate in this scenario.

提交回复
热议问题