可以用基于dialog的mfc程序,在窗口上添加按钮,然后给按钮添加执行函数,在函数里面调用ShellExecute(NULL,_T("open"),GetAppPath()+_T("xxx.bat"),NULL,NULL,SW_SHOW);就可以啦