Einzelnen Beitrag anzeigen

value is NULL

Registriert seit: 10. Sep 2010
249 Beiträge
 
#1

Operation status

  Alt 25. Okt 2010, 13:06
Hi Delphianer

Ich benutze in meinem Code folgende Function:

Delphi-Quellcode:
function CopyDir(const fromDir, toDir: string): Boolean;
var
  fos: TSHFileOpStruct;
begin
  ZeroMemory(@fos, SizeOf(fos));
  with fos do
  begin
    wFunc := FO_COPY;
    fFlags := FOF_FILESONLY;
    pFrom := PChar(fromDir + #0);
    pTo := PChar(toDir)
  end;
  Result := (0 = ShFileOperation(fos));
end;
das ganze wird eine Console App, gibt es irgendeine Möglichkeit, während des Kopier vorganges einen Status anzuzeigen ? egal ob in Prozent oder in zB X MB von 129 MB ?

Vielen Dank im Voraus!

LG
  Mit Zitat antworten Zitat