UINT WinExec(    LPCSTR lpCmdLine, // address of command line 
    UINT uCmdShow  // window style for new application 
   );
WinExec('c:\program files\abc.exe',SW_SHOWNORMAL);

解决方案 »

  1.   

    1.Winexec('Notepad.exe',sw_Normal);
     uses shellapi
    2.
    ShellExecute(0, 'open', 'Notepad.exe', nil, nil, SW_SHOW);
      

  2.   

    winexec('c:\program files\abc.exe',0)
      

  3.   

    WinExec(PChar('c:\program files\abc.exe'),SW_NORMAL);
      

  4.   

    WinExec('c:\program files\Notepad.exe',SW_SHOWNORMAL);
    SW_HIDE SW_MAXIMIZE SW_MINIMIZE Minimizes SW_RESTORE
    第二个参数是调用方式!
      

  5.   

    ShellExecute(0, 'open', 'Notepad.exe', nil, nil, SW_SHOW);
    同意该方法
      

  6.   

    ShellExecute(0, 'Open', '*.exe', nil,Nil,SW_SHOWNORMAL)
      

  7.   

    1.if opendialog.execute then 
      begin
        winexec(opendialog.filename,0) ;
      end;2。ShellExecute(0, 'open', 'Notepad.exe', nil, nil, SW_SHOW);
      (copy from  lizhenjia(暴雪) )3. 如果你的意思是调用程序来打开某类数据的话,就用ole容器吧!