while true do begin if (i=0) and not MutexIsExist then Shellexecute(P1); if (i=1) and not MutexIsExist then Shellexecute(P2); if (i=2) and not MutexIsExist then Shellexecute(P3); sleep(n); end; Èç¹ûÈý¸ö³ÌÐòÊÇÄãдµÄ£¬»òÕßÄãÄÜÐÞ¸ÄÔ´´úÂ룬ÄÇô¼ÓÈ뻥³â¶ÔÏó¾ÍÄÜ¿ØÖÆ£¬ÔÚÄãÈÏΪºÃÁ˵ĵط½ÊÍ·Å»¥³â¶ÔÏó¾ÍÊÇÁË£¬Ö÷³ÌÐòÖеȴýÕâ¸ö»¥³â¶ÔÏ󣬳ɹ¦µÈ´ý¾ÍÔÚµ÷ÓÃÏÂÒ»¸ö³ÌÐò¡£
procedure Tpaigon.N2Click(Sender: TObject); var j,col:integer; filename:string; MSExcel,xlsheet,xlBook:Variant; //ole ComObj begin IF DBGrid1.Fields[0].AsString=' ......