在D7中如何调用*.exe应用程序?

解决方案 »

  1.   

    WinExec('E:\NEWWEBSTAT\ProjectRule.exe', 0);
      

  2.   

    str:=ExtractFilePath(application.exename)+ExtractFileName('run.exe');
    winexec(PChar(str),9);
      

  3.   

    FileName:=ExtractFilePath(Paramstr(0))+'project1.exe';
     ShellExecute(handle, 'open',pchar(filename), nil, nil,sw_shownormal);
      

  4.   

    1、
    WinExec('E:\NEWWEBSTAT\ProjectRule.exe', 0);
    2、
    ShellExecute(handle, 'open',‘filename.exe’,nil, nil,sw_shownormal);