天天看点

c++执行外部程序

#include "stdafx.h"

#include <windows.h>

#include <shellapi.h>//ShellExecute 要引用的库

int main(int argc, _TCHAR* argv[])

{    

    ShellExecute(NULL,NULL,_T("E:\\App\\test\\test\\bin\\Debug\\test.exe"),NULL,NULL,SW_SHOW);//双斜杠

    return 0;

本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2012/10/24/2736551.html,如需转载请自行联系原作者

继续阅读