Hallo habe jetzt die Lösung mit dem Counter
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30:
| procedure TForm1.NMPOP32DecodeStart(var FileName: String); var
Zeit,counter_str, path : String; Datei : textfile; counter : word; i : integer; begin
Zeit := TimeToStr(Time);
path:= ExtractFilePath(Application.ExeName); AssignFile(Datei, path + 'counter.txt'); Reset(Datei); Readln(Datei, counter_str); counter:= strtoint(counter_str); Rewrite(Datei); for i:=1 to NMPOP32.MailCount do begin counter:= counter + 1;
Zeit := copy(Zeit, 1 ,2) +'_'+ copy(Zeit, 4 ,2) +'_'+ copy(Zeit, 7 ,2); end; Writeln(Datei, counter); CloseFile(Datei);
FileName :='\\ibasserver\ELOProf\Global\Postbox\vk\'+ Zeit + '_' + inttostr(counter) +'.tif';
end; |
Bis dann