ok, well now im confused.
I rewrote my code with the change that :
-------------------------------------------
-------------------------------------------
Let>CF_OVERWRITE=1
Let>oldfile=C:\directory\XREF.DAT
ReadLn>oldfile,3,text
MidStr>text,69,11,show
Let>rest=show
MessageModal>show
Position>\,rest,1,start
Let>start=start+1
Length>rest,lf
MidStr>rest,start,lf,temp
Position>.,temp,1,end
Let>end=end-1
MidStr>temp,1,end,midPart
Let>newfile=%midPart%
Let>newfile2=C:\dataexport\XREF_1_%newfile%.DAT
CopyFile>oldfile,newfile2
------------------------------------------
------------------------------------------
Now its copying the file and rename it in another directory, also as exe-file it does. So it seems to be that the rename function doesnt work in the same directory and been read out, is this a correct thinking ?
Well what ever, the main problem at my pc is that the rename fuction doesnt work as exe-file....so it be
best