AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Filename AutoInc name

Ein Thema von mohfa · begonnen am 17. Okt 2008 · letzter Beitrag vom 18. Okt 2008
 
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#1

Filename AutoInc name

  Alt 17. Okt 2008, 22:01
Hi every body , my application needs to Create each time - after a specific event - a Log file , But what i want is that the new created Log file name will be like this : 00001.log // then 1 will be auto-inc each time the new log file is created .

So for the first execution my application will ensure that the 00001.log already exists , if this Log file (00001.log ) exists then it will create a new log file 00002.log and so on ( the 00001 will be auto-incremented like this 00002 or 00003 ...etc )otherwise it will create 00001.log .


as a summary : if 00001.log exits then Create a new file 00002.log , if 00002.log then a new with 00003.log ...etc . but if 00001.log doesn't exist then create 00001.log .



many thanks
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:33 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz