ShellExecute(0, 'open', PChar('b.exe'), '', '', sw_ShowNormal);
解决方案 »
- 为什么用idftp get() 下载一个文件后修改日期被改成了系统当前的日期
- 请教各位高手,如何将记录号加到dbgrid 中?
- 求助:TurboDelphi带的interbase7.5无法启动
- D6环境+QuickReport4.04版本,无法选择页打印,要打就全部打印。昏。。。。谁有办法解决,高分全给
- DBGrid窗口字段字节能显示中文???
- 穷疯了,便宜出卖公司网站空间!
- 哪位老大有 FastReport for delphi6 控件,给我一份吧!
- 如何给Image画边框?
- 奇怪的问题,数据集为空就关不掉?Access数据库建立主从关系后多表查询就查不到记录!online waiting!
- 一个TWebBrowser的问题,怎么控制TWebBrowser翻页?
- 更迷茫了,哎,怎么办?
- xxmmmx(踢踏) ,进来那分
@b.exe//a.exe
begin
if application.MessageBox(pchar('客户端最新版本为' + ServerVer + ',请立即更新!'), '提示', mb_YesNo + mb_IconQuestion) = Id_Yes then
begin
ShellExecute(handle, 'open', PChar('bbat.bat'), '', '', sw_hide);
application.Terminate;
end;
end;
batch file, and, as the very last thing it does before closing, starting
this batch file with a
//*************************************
winexec(batchfilename, SW_HIDE );
//*************************************
The batch deletes the program and then can delete itself. The last line is adel %0and it is *not* terminated with a carriage return/line feed pair.