ShellExecute(handle,'open',PChar('calc'),nil,nil,SW_SHOW);

解决方案 »

  1.   

    在2000下:
    uses
     shellapishellexecute(0,'open',‘c:\winnt\system32\calc.exe,nil,nil,SW_Normal);
      

  2.   

    winexec('path\file.exe',sw_show)

    ShellExecute(handle,'open',PChar('path\计算器.exe'),nil,nil,SW_SHOW);
    都可以
      

  3.   

    if Winexec('Calc', sw_show) < 31 then
    //未找到處理
    第一個參數代表計算器所在的路徑與文件名一般來
    說不需要加路徑,第二個參數是計算窗體的顯示風
    格。如果<31則代表沒有找到該EXE文件
      

  4.   

    ShellExecute(0, 'open', 'calc', Nil, Nil, SW_SHOW);
      

  5.   

    ShellExecute,自己查看相关帮助!因为是Windows自带程序,所以只要指出文件名即可,无须完整路径!
    ShellExecute(0, 'open', 'calc.exe', Nil, Nil, SW_SHOW);
      

  6.   

    uses
     shellapishellexecute(0,'open','calc.exe',nil,nil,SW_Normal);就可以了,在什么操作系统下都一样
      

  7.   

    ShellExecute(handle,'open',PChar('path\calc.exe'),nil,nil,SW_SHOW);