如何在程序中先运行另一个外部程序然后将自己关闭? procedure Form1.FormCreate(Sender : TObject);begin winexec('c:\a.exe'); Application.Terminate;end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 winexec('exe',SW_SHOWNORMAL);差不多楼上说法! 在Project中uses中加入 SHellApibegin shellExecute(GetActiveWindow,'Open', 'c:\windows\calc.exe', NiL, Nil, SW_Normal); showmessage('马上关闭本程序'); Application.Terminate ;end; FindWindow(nil,'标题');取得handle,然后postmessage(handle,消息,0); post https报错:HTTP/1.1 400 Bad Request delphi access violation Delph与SQL Server连接的问题 求助:关于INI写二进制流 DELPHI中面向对象编程与其它开发语言的一个奇怪的差别,欢迎讨论. 请问以下怎么封装以下过程? 数据更新的问题?? Delphi 中如果及时的捕获PRINT键 关于richedit的菜问题 怎么取得本机的IP地址!!!! 这个关键字怎么用? 请问谁知道哪里有Borland Delphi 6 Enterprise的SP1升级包下载?
差不多楼上说法!
uses中加入 SHellApi
begin
shellExecute(GetActiveWindow,'Open',
'c:\windows\calc.exe', NiL, Nil, SW_Normal);
showmessage('马上关闭本程序');
Application.Terminate ;
end;
postmessage(handle,消息,0);