bonjour;
quand j'utilise renamefile(fsource,fdestination) ;
fdestination est specifié ..la commande marche.
ex : renamefile('c:\aaa\azerty.txt','c:\aaa\azerty1.txt').
mais quand le fichier source est par exemple:
S; (S: varible string); ca ne marche pas.
ex
S:= 'c:\aaa\'+ edit1.text+'.txt';
renamefile('c:\aaa\azerty.txt',S);
meme si je fait renamefile('c:\aaa\azerty.txt',Pchar(S));
merci