我想在执行过程中按某个按钮就会执行我指定的EXE
别的语言里是RUN("***.EXE"),不是Delphi里是怎么写的,谢谢!

解决方案 »

  1.   

    WinExec
    ShellExecute_____________________
    http://lysoft.7u7.net
      

  2.   

    shellexecute或winexec我都不会用,能具体点吗?
    里面的参数是什么?
      

  3.   

    如:Winexec('c:\WINNT\NOTEPAD.exe',SW_NORMAL); //打开记事本;
      

  4.   

    我看帮助了,没有Winexec的详细说明,我是这样谢的
    if FileExists(ls_program) then Winexec(ls_program,SW_SHOWNORMAL);
    报Incompatible 'string' and 'Pchar'的错。
      

  5.   

    用 CreateProcess 最多参数可选,而且WinExec,ShellExecute等最终也是用CreateProcess 来实现的
      

  6.   

    WinExec(pchar(ls_program), SW_SHOWNORMAL);
    不过WinExec是16位的API,用ShellExecute功能更丰富一些
      

  7.   

    谢谢楼上各位了,用WinExec(pchar(ls_program), SW_SHOWNORMAL);就可以了。