Uses ShellAPI ;<br>function TForm1.Win_Copy(fFROM,fTO:String):boolean;<br>var FData : TShFileOpStruct;<br>begin<br> Fdata.pFrom := PChar(fFrom);<br> fdata.pTo := PChar(fTo);<br> fdata.wFunc := FO_COPY ;<br> FData.Wnd := application.Handle ;<br> fData.lpszProgressTitle := '正在复制';<br> fData.fFlags := FOF_ALLOWUNDO OR FOF_NOCONFIRMMKDIR;<br> result:=ShFileOperation( FData ) = 0 ;<br>end;<br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> Win_Copy('c:/WIN2000/*.*','c:/jdk');<br>end;<br>