Z
zhanghua
Unregistered / Unconfirmed
GUEST, unregistred user!
用如下程序完成拷贝功能时,报告文件错<br>procedure TForm1.Button1Click(Sender: TObject); <br>var <br> F : TShFileOpStruct; <br>begin <br> F.Wnd := Handleaway <br> F.wFunc := FO_COPY; <br> F.pFrom := 'D:/a.db'; <br> F.pTo := 'C:/b.db'; <br> F.fFlags := FOF_ALLOWUNDO or FOF_RENAMEONCOLLISION; <br> if ShFileOperation(F) <> 0 then ShowMessage('Failed'); <br>end;<br>但是拷贝*。TXT文件时可以。 <br>