procedure CopyDir(const Sour, Dest: string);<br> var<br> FileOp: TSHFileOpStruct;<br>begin<br> with FileOp do<br> begin<br> Wnd := 0;<br> wFunc := FO_COPY;<br> pFrom := PChar(Sour);<br> pTo := PChar(Dest);<br> fFlags := FOF_Silent + FOF_NoConfirmation;<br> fAnyOperationsAborted := False;<br> hNameMappings := nil;<br> lpszProgressTitle := nil<br> end;<br> SHFileOperation(FileOpend;