Suppose I have:
FileOut3$ = "E:\LGS\States\New\" & trim$(StateArray$(StateCount,1)) & ".Dat"
FileTemp$= "E:\LGS\States\New\" & trim$(StateArray$(StateCount,1)) & ".TMP"
(Let's say FileOut3$ = AK.Dat)
I am trying to rename AK.Dat to AK.TMP.
I tried saying
SHELL " ren FileOut3$ FileTemp$"
I want the AK.Dat file renamed to AK.TMP
But I get this error:
Duplicate file name or file not found.
How should I rename files from inside a DOS Powerbasic program please?
Thanks.
Robert
FileOut3$ = "E:\LGS\States\New\" & trim$(StateArray$(StateCount,1)) & ".Dat"
FileTemp$= "E:\LGS\States\New\" & trim$(StateArray$(StateCount,1)) & ".TMP"
(Let's say FileOut3$ = AK.Dat)
I am trying to rename AK.Dat to AK.TMP.
I tried saying
SHELL " ren FileOut3$ FileTemp$"
I want the AK.Dat file renamed to AK.TMP
But I get this error:
Duplicate file name or file not found.
How should I rename files from inside a DOS Powerbasic program please?
Thanks.
Robert
Comment