或者调用shellapi组建也可以(把shellapi添加到uses中)
var
file:tshfileopstruct;
file.wnd:=handle;
file.wfunc:=fo_copy;{操作方式}
file.pfrom:='e:\******';
file.pto:='e:\*******';
file.fflags:=fof_allowundo or fof_renameoncollision; {操作选项}
if shfileoperation(file)<>0 then
showmessage('文件拷贝失败!');
if shfileoperation(file)=0 then
showmessage('ok!');