L
lgsonline
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);<br>var<br> f:Tshfileopstruct;<br> begin<br> f.wnd:=Handle;<br> F.wFunc:=FO_COPY;<br> F.pFrom:=pchar(edit1.text);<br> F.pTo:=pchar(edit2.text);<br> F.fFlags:=FOF_ALLOWUNDO OR FOF_RENAMEONCOLLISION ;<br> if ShFileOperation(F)<>0 then<br> ShowMessage('文件拷贝失败');<br>end;<br>帮高手帮我看看好吗?