Here are 2 simple lines of code :
COPY FILE &(aDocTemp+".RTF") TO &(ALLTRIM(DocDoel)+"\"+"00000001.RTF")
COPY FILE &(aDocTemp+".RTF") TO &(ALLTRIM(DocDoel)+"\"+RIGHT(STR(100000000+VAL(DCTELLER),9,0),8) + ".RTF")Thanks a lot in advance.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773