qt 获得cmd 命令运行的结果
摘要:
http://blog.csdn.net/flxqe/article/details/7801084// 参考BOOL ExecDosCmd(){ #define EXECDOSCMD "ping http://www.baidu.com" //可以换成你的命令SECURITY_ATTRIBUTES sa;HANDLE hRead,hWrite;sa.nLength = sizeof(SECURITY_ATTRIBUTES);sa.lpSecurityDescriptor = NULL;sa.bInheritHandle = TRUE;if (!CreatePipe(&am 阅读全文
posted @ 2012-12-08 16:55 GIS-MAN 阅读(12342) 评论(0) 推荐(0) 编辑