如何带参数打开其他程序?

如何带参数打开其他程序? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiAPI/html/delphi_20061125212626172.html
有一个程序temp.exe,可以带3个参数运行,三个参数分别是   a   ;   b;   c  
  怎么编写点击按钮后带参数的打开temp.exe,并且得到该进程的句柄还有进程句柄等等?

参数直接写后面就好了呀,用空格隔开。  
  temp.exe   a   b   c  
   
  后面那个问题就不知道了。

CreateProcess

mark

ShellExecute(Handle,   nil,   PChar(FName),   PChar(Param),   nil,   SW_SHOWNORMAL);  
   
  然后查找窗体

WinExec('c:\temp\temp.exe   a   b   c',   SW_SHOW);

学习!

posted on 2008-11-27 21:09  delphi2007  阅读(383)  评论(0编辑  收藏  举报