rename function does not work as executable

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

worldwide
Junior Coder
Posts: 31
Joined: Mon Jul 09, 2007 11:34 am

Post by worldwide » Thu Jul 26, 2007 6:56 am

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

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts