没有delphi的了,给个bcb的,具体的看帮助<br><br> AnsiString ProgramName;<br> AnsiString ProgramPath;<br> STARTUPINFO StInfo;<br> PROCESS_INFORMATION ProcInfo;<br> bool CreateCode;<br><br><br> ProgramPath = AppPath;<br> ProgramName = AppPath + "abcde.exe";<br><br> StInfo.cb = sizeof(StInfo);<br> StInfo.lpReserved = NULL;<br> StInfo.lpDesktop = NULL;<br> StInfo.lpTitle = NULL;<br> StInfo.dwFlags = 0;<br> StInfo.cbReserved2 = NULL;<br> StInfo.lpReserved2 = NULL;<br><br><br><br> try<br> {<br> CreateCode = CreateProcess(ProgramName.c_str(),NULL,NULL,NULL,<br> false,CREATE_NEW_CONSOLE,NULL,ProgramPath.c_str(),&StInfo,&ProcInfo);<br> }<br> catch (...)<br> {<br> }<br> if (!CreateCode)<br> {<br> MessageBox(Handle,"启动失败","错误",MB_OK + MB_ICONERROR);<br> }