仅仅执行指令
#include <windows.h>
#include <process.h>
bool convertTool::actionEXE(const std::string& command)
{
bool status = false;
int res = system(command.c_str()); // 执行命令
if (res == 0)
{
// 执行成功
status = true;
}
return status;
}
能够获取到打印结构 (windows)
#include <windows.h>
#include <process.h>
#include <iostream>
#include <cstdio>
#include <memory>
#include <string>
#include <filesystem>
bool actionEXE_2(

最低0.47元/天 解锁文章
16万+

被折叠的 条评论
为什么被折叠?



