怎样 让程序 自己复制自己(20分)

F

ftop1

Unregistered / Unconfirmed
GUEST, unregistred user!
<br>怎样 让程序 自己复制自己
 
var a:Tmemorystream;<br>begin<br>&nbsp; a:=Tmemorystream.create;<br>&nbsp; a.loadfromfile('你的文件名');<br>&nbsp; a.savetofile('复制出的文件名');<br>&nbsp; a.free;<br>end;
 
用copyfile就OK了。
 
CopyFile(Application.ExeFile,目标,False);
 
接受答案了.
 
顶部