c++ - 与 stdlib system() 函数等效的 Win32 API 是什么?

标签 c++ c winapi

<分区>

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/

相关文章:

c++ - 删除 vector 时出现段错误

c++ - 从指针 vector 到 const 指针 vector 的重新解释是否安全?

c - 拦截LibC函数调用,可能吗?

C fscanf 以正确的格式读取

c - 在堆中分配函数的返回值

c++ - 如何在代码中正确使用 %USERPROFILE%?

c++ - 如何根据容器中对象的类型来判断调用哪个函数?

c++ - SecByteBlock 到字符串转换错误

c - 如何从 Win32 API 获取打印机制造商和型号?

c++ - 具有FileLock()的同步多进程在同一文件上读/写c++ win32