if 'c:\Gestion\TbClt\'+DBLookupComboBox1.Text+'.db') then copyfile ... else begin i := 1; while FileExists('c:\Gestion\TbClt\'+DBLookupComboBox1.Text + IntToStr(i) + '.db') do inc(i); copyfile(FichierOrgine, 'c:\Gestion\TbClt\'+DBLookupComboBox1.Text + IntToStr(i) + '.db'); end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionCopyFile(PChar('C:\RepertoireOrigine\TonFichier.db'), PChar(IncIfExists('C:\RepertoireDestination' + ComboBox1.Text + '.db', 3)), true);