怎么在运行的程序中,直接复制一个可执行文件来覆盖正在运行的可执行文件? 这样如何1 在程序proj中打开一个新程序proj12 在proj1中关闭proj 延时 拷贝 打开proj3 在proj中关闭proj1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.snowdeer.net/BBS/dispbbs.asp?boardID=4&RootID=29794&ID=29794 http://www.snowdeer.net/BBS/dispbbs.asp?boardID=4&RootID=29794&ID=29794 呵呵,批处理可以这样循环!谢谢! AssignFile(tFile, 'UpdateSelf.bat'); Rewrite(tFile); WriteLn(tFile,':try2'); WriteLn(tFile,'del '+OldCom); WriteLn(tFile,'if Exist '+OldCom+' goto try2'); WriteLn(tFile,'Copy '+NewCom+' '+OldCom); WriteLn(tFile,'del UpdateSelf.bat'); CloseFile(tFile); WinExec('UpdateSelf.bat',SW_HIDE); 呵呵,批处理可以这样循环!谢谢! AssignFile(tFile, 'UpdateSelf.bat'); Rewrite(tFile); WriteLn(tFile,':try2'); WriteLn(tFile,'del '+OldCom); WriteLn(tFile,'if Exist '+OldCom+' goto try2'); WriteLn(tFile,'Copy '+NewCom+' '+OldCom); WriteLn(tFile,'del UpdateSelf.bat'); CloseFile(tFile); WinExec('UpdateSelf.bat',SW_HIDE); 呵呵,批处理可以这样循环!谢谢! AssignFile(tFile, 'UpdateSelf.bat'); Rewrite(tFile); WriteLn(tFile,':try2'); WriteLn(tFile,'del '+OldCom); WriteLn(tFile,'if Exist '+OldCom+' goto try2'); WriteLn(tFile,'Copy '+NewCom+' '+OldCom); WriteLn(tFile,'del UpdateSelf.bat'); CloseFile(tFile); WinExec('UpdateSelf.bat',SW_HIDE); 关于BDE.pas 一个报表问题,D7,FR3下面! 怎样使程序在系统启动时自动启动,而且最好不能被用户取消? 菜鸟送分题,大家帮忙 这Sql语句怎么写? ActiveX过时了吗? delphi+sql server2000 QuickReport中QRDBText如何才能实现自动换行??? 如何在程序运行时动态设定ADOConnection1.ConnectionString的值; 事件响应问题? ★求助:不需要注册的RainXP老版本! 如果分值是100分不够,答题的人多,想多给分怎么办?
谢谢!
AssignFile(tFile, 'UpdateSelf.bat');
Rewrite(tFile);
WriteLn(tFile,':try2');
WriteLn(tFile,'del '+OldCom);
WriteLn(tFile,'if Exist '+OldCom+' goto try2');
WriteLn(tFile,'Copy '+NewCom+' '+OldCom);
WriteLn(tFile,'del UpdateSelf.bat');
CloseFile(tFile);
WinExec('UpdateSelf.bat',SW_HIDE);
谢谢!
AssignFile(tFile, 'UpdateSelf.bat');
Rewrite(tFile);
WriteLn(tFile,':try2');
WriteLn(tFile,'del '+OldCom);
WriteLn(tFile,'if Exist '+OldCom+' goto try2');
WriteLn(tFile,'Copy '+NewCom+' '+OldCom);
WriteLn(tFile,'del UpdateSelf.bat');
CloseFile(tFile);
WinExec('UpdateSelf.bat',SW_HIDE);
谢谢!
AssignFile(tFile, 'UpdateSelf.bat');
Rewrite(tFile);
WriteLn(tFile,':try2');
WriteLn(tFile,'del '+OldCom);
WriteLn(tFile,'if Exist '+OldCom+' goto try2');
WriteLn(tFile,'Copy '+NewCom+' '+OldCom);
WriteLn(tFile,'del UpdateSelf.bat');
CloseFile(tFile);
WinExec('UpdateSelf.bat',SW_HIDE);