如题

解决方案 »

  1.   

    ShellExecute
    ShellExecuteEx
    WinExec
    CreateProcess一般用ShellExecute,比较简单方便。
    如启动计算器:
    ShellExecute(Handle, 'open', 'calc.exe', nil, nil, SW_SHOW);
      

  2.   

    uses ShellAPI;ShellExecute(nil, 'open', 'calc.exe', nil, nil, SW_SHOW);
      

  3.   

    uses ShellAPI;ShellExecute(application.handle, 'open', 'xxx.exe', nil, nil, SW_SHOWNORMAL);
    具体说明看msdn
      

  4.   

    WinExec(Pchar('d:\aa.EXE'),SW_SHOWNORMAL);
      

  5.   

    1、WinExec
    2、use ShellApi
    ShellExecute
      

  6.   

    ShellExecute(Handle, 'open', 'calc.exe', nil, nil, SW_SHOW);
      

  7.   

    ShellExecute
    ShellExecuteEx
    WinExec
    CreateProcess一般用ShellExecute,比较简单方便。
    如启动计算器:
    ShellExecute(Handle, 'open', 'calc.exe', nil, nil, SW_SHOW);