winexec('pathfilename')
可以查一查联机帮助或者你可以用别的函数创建一个新的线程若要源码的话我也可以给你

解决方案 »

  1.   

      shellapi中的shellexecute()也可以。另外也可以用CreateProcess()
      

  2.   

    用shellexecute()函数,并加入shellapi;
    例:
    shellexecute( handle,'clcu.exe','open',nil,'c:\windows',sw_shownormal);
      

  3.   

    请自行参详 ...{执行外部程序}
    procedure ProcessRun(CommandLine: string);
    var
      bCreateProcess: boolean;
      lpStartupInfo: TStartupInfo;
      lpProcessInformation: TProcessInformation;
    begin
      // 填入 StartupInfo
      FillChar(lpStartupInfo, Sizeof(TStartupInfo), #0);
      lpStartupInfo.cb := Sizeof(TStartupInfo);
      lpStartupInfo.dwFlags := STARTF_USESHOWWINDOW;
      lpStartupInfo.wShowWindow := SW_NORMAL;
      bCreateProcess := CreateProcess(nil, PChar(CommandLine),
             nil, nil, True, CREATE_NEW_CONSOLE or NORMAL_PRIORITY_CLASS,
             nil, nil, lpStartupInfo, lpProcessInformation);
    end;
      

  4.   

     uses WinProcs;   
       .   
       begin   
        WinExec(......);   
         .   
       
       end.   
      

  5.   

    方法很多,但是在WIN32系统下最好用CREATEPROCESS,因为这个函数安全一些,而且可以在调用的进程释放前不能激活主进程,安全又方便,哈哈,唯一的缺点——参数多了点。