在delphi中,怎实现调用 系统自带的计算机cacl.exe程序啊? 提供语句,谢谢

解决方案 »

  1.   

    uses ShellApi ShellExecute(Handle,'open','CALC.EXE',nil,nil,SW_SHOWNORMAL)
      

  2.   

    WinExec('calc.exe',SW_SHOWNORMAL);
    ShellExecute(handle,'open',pchar('calc.exe'),nil,nil,SW_SHOWNORMAL);
    都可以,不过后者要use shellapi,当然最好还是用creaetprocess
      

  3.   

    winexec('notepad.exe d:\rsc\dyyd.pas', sw_shownormal);(打开记事本)
    winexec('calc.exe', sw_shownormal);(打开计算器)
      

  4.   

    winexec('notepad.exe d:\rsc\dyyd.pas', sw_shownormal);(打开记事本)
    winexec('calc.exe', sw_shownormal);(打开计算器)