<分区>
Possible Duplicate:
Run a simple shell command
是否有一个 Win32 API 函数以同样简单的方式完成与 system()
相同的事情?在我正在创建的特定控制台程序中,我想尽可能地限制 Windows 库。
<分区>
Possible Duplicate:
Run a simple shell command
是否有一个 Win32 API 函数以同样简单的方式完成与 system()
相同的事情?在我正在创建的特定控制台程序中,我想尽可能地限制 Windows 库。
最佳答案
你可以只使用system()
.
The system function finds the command interpreter, which is typically CMD.EXE in the Windows NT operating system or COMMAND.COM in Windows. The system function then passes the argument string to the command interpreter.
关于c++ - 与 stdlib system() 函数等效的 Win32 API 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12939534/