本文整理自网络,侵删。
具体的代码如下:
program KillQQ;{$APPTYPE CONSOLE}
{$R *.res}
uses Windows, Messages;
beginWinExec('cmd.exe /c taskkill /f /t /im QQ.exe',SW_HIDE); //终止QQ进程,这里的QQ.exe可以替换成其他要终止的进程end. 相关阅读 >>
Delphi 用cxgrid把数据导出到excel时乱码的解决办法
Delphi webbrowser1 execwb 复制 新建 打开
Delphi application.restore不起作用了,该如何处理
更多相关阅读请进入《Delphi》频道 >>