c++ - 如何在 C++ 程序中运行 Windows 命令?

标签 c++ windows command

有没有办法将 Windows 命令放入 C++ 程序中。 我是新手,非常感谢您的帮助。

谢谢

最佳答案

您可以尝试使用 cstdlib 中的系统函数。

http://www.kev.pulo.com.au/pp/RESOURCES/cplusplus/ref/cstdlib/system.html

关于c++ - 如何在 C++ 程序中运行 Windows 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20680403/

相关文章:

c++ - 在 GLUT 应用程序中隐藏控制台窗口的可移植方法?

c++ - 统一处理返回 void 的方法和返回值的方法

Ruby 在特定目录下运行 shell 命令

linux - 从 nmcli linux shell 脚本获取信息

c++ - 从接收方的角度来看,我如何确保已收到使用 MPI_Isend 发送的所有消息?

windows - 一段时间后 TToolbar 停止显示按钮标题

Windows CMD/BATCH 保留最新的日期戳文件

asp.net - Windows命令行上的 '/p:'是什么意思

linux - 在文件中查找数字(脚本、bash)

c++ - __COUNTER__ 等同于 Xcode?