两个程序分别是独立的。

解决方案 »

  1.   

    The ShellExecute function opens or prints a specified file. The file can be an executable file or a document file. See ShellExecuteEx also. 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
       );
      

  2.   

    我用winexec('update.exe','sw_show'),但没用,估计不是涵数的问题,是不是要两个exe放在一个文件夹?
      

  3.   

    ShellExecute(0,'open','update.exe',nil,nil,SW_NORMAL);记得在uses里面加入shellapi,放到同一目录下
      

  4.   

    procedure ExecNewProcess(ProgramName : String);
    var
      StartInfo  : TStartupInfo;
      ProcInfo   : TProcessInformation;
      CreateOK   : Boolean;
    begin  { fill with known state }
      FillChar(StartInfo,SizeOf(TStartupInfo),#0);
      FillChar(ProcInfo,SizeOf(TProcessInformation),
               #0);
      StartInfo.cb := SizeOf(TStartupInfo);  CreateOK := CreateProcess(nil, 
                  PChar(ProgramName), nil, nil,
                  False,
                  CREATE_NEW_PROCESS_GROUP + 
                  NORMAL_PRIORITY_CLASS, 
                  nil, nil, StartInfo, ProcInfo);  { check to see if successful }
      if CreateOK then
        //may or may not be needed. Usually wait for 
        //child processes. You can comment this line
        //out.
        WaitForSingleObject(ProcInfo.hProcess, 
                            INFINITE);
    end;
      

  5.   

    ShellExecute 或者WinExec
    sorry 晚了