c++ builder 调用命令行,并获取命令行的内容
当你需要调用命令行程序,并获取它的命令行输出内容的时候,这个函数就可以满足你的需要。String ExecDosCmd(String cmd, TMemo *memo){ SECURITY_ATTRIBUTES sa; HANDLE hRead,hWrite; sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.lpSecurityDescriptor = NULL; sa.bInheritHa.