Einzelnen Beitrag anzeigen

h4dhunTer

Registriert seit: 21. Mai 2008
Ort: Leer (Ostfriesland)
2 Beiträge
 
Delphi 7 Professional
 
#3

Re: Ganzen Ordner kopieren + prüfen auf Datum

  Alt 21. Mai 2008, 15:07
Hallo,
also ich habe durch die Suche diesen Code gefunden:

Delphi-Quellcode:
function DoFileWork(aOperation: FILEOP_FLAGS; aFrom, aTo: AnsiString;
    Flags: FILEOP_FLAGS): Integer;
var
  FromPath, ToPath: AnsiString;
  SHFileOpStruct: TSHFileOpStruct;
begin
  FromPath := aFrom + #0#0;
  ToPath := aTo + #0#0;
  with SHFileOpStruct do
  begin
    Wnd := 0;
    wFunc := aOperation;
    pFrom := PAnsiChar(FromPath);
    if ToPath <> 'then
    begin
      pTo := PAnsiChar(ToPath)
    end else begin // target available
      pTo := nil;
    end; // target not available
    fFlags := Flags;
  end; // structure
  Result := SHFileOperationA(SHFileOpStruct);
end;
Nun muss halt noch die Überprüfung der Datein, ob das Datum unterschiedlich ist, eingebaut werden.
  Mit Zitat antworten Zitat