>VFP give us the commands MD, CD, Copy file...
>Is there a comand to do the rename?
>
>How can I do a rename of a file name?
Don't know if there is a rename file command .....
But you can do this ...
COPY FILE x.txt TO y.prg
IF (FILE("y.prg"))
DELETE FILE x.txt
ELSE
WAIT WINDOW "Rename file failed...." NOWAIT
ENDIF
HTH
Alonso
Like Frank said: "I did it... MY WAY!"