看windowsAPI的help
Exec or CreateProcess

解决方案 »

  1.   

    var
        StartInf:TSTARTUPINFO;  
        ProInf:TProcessInformation;
        ExeName:string;  begin
       StartInf.cb := SizeOf(TSTARTUPINFO);
       ExeName := 'C:\***.exe'; //your exe Name 
       CreateProcess( Pchar(ExeName),'',nil,nil,FALSE,
                      CREATE_DEFAULT_ERROR_MODE,
                      nil,
                      nil,
                      StartInf,
                      ProInf);
    end;关闭此进程
      TerminateProcess(ProInf.hProcess,0);
      

  2.   

    好象不太管用,可能要用shell,能否谈谈shell?
      

  3.   

    用ShellExecute试试看?
    HINSTANCE ShellExecute(
        HWND hwnd, // handle to parent window
        LPCTSTR lpOperation, // pointer to string that specifies operation to perform
        LPCTSTR lpFile, // pointer to filename or folder name string
        LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters 
        LPCTSTR lpDirectory, // pointer to string that specifies default directory
        INT nShowCmd  // whether file is shown when opened
       );
      

  4.   

    用ShellExecute试试看?
    ShellExecute(handle, 'Open', 'U Program Here', 'Parameters Hers', nil, SW_SHOW);
      

  5.   

    最简单的就是用ShellExecute了,如果你要知道调用的进程什么时候终止,就只有用OpenProcess