比如要启动IE,
  "C:\Program Files\Internet Explorer\IEXPLORE.EXE" 

解决方案 »

  1.   

    uses ShellAPI;ShellExecute(handle,nil, 'C:\Program Files\Internet Explorer\IEXPLORE.EXE',nil,nil,SW_SHOWNORMAL);
      

  2.   

    谢谢楼上的回答,
    我还有一个问题,如果打开指定一个网页,例如:www.sina.com.cn 那个参数怎么设啊?
      

  3.   

    ShellExecute(handle, nil, pchar('http://www.**********'), nil, nil,sw_shownormal);
    当然,uses中要加上shellaip
      

  4.   

    ShellExecute  打开网址还应加上一个打开命令'open'建议楼主看看MSDN
      

  5.   

    winexec('文件路径',sw_show)  createprocess也可以。
      

  6.   

     
      Winexec
      Shellexecute
      createprocess 是调用外部程序的三法
      

  7.   

    ShellExecute(handle,   nil,   pchar( 'http://www.********** '),   nil,   nil,sw_shownormal); 
    当然,uses中要加上shellaip用上面的语句,找开网页时,是把已开的最后一个网页的直接更改为:'http://www.********** 不知道能不能让程序新打开一个网页为:'http://www.********** 谢谢大家
      

  8.   

    这样吧,以参数的形式
    ShellExecute(handle,nil,   'IEXPLORE.EXE',pchar('http://www.baidu.com/index.html'),nil,SW_SHOWNORMAL);