>LengthReturned = LEN(filename) >ShortName = Substr(filename,1,(LengthReturned-4)) >MemoFileName = ShortName+".FTP" >>Then I can use Copy File. It seems to do the job. I'll give it a try this way.
MemoFileName=forceext(filename, "FPT")Also, for other filename manipulation, check DefaultExt(), JustFName(), JustStem(), JustExt(), ForcePath() functions. They look much neater than using at(), Substr() etc, and you don't need to worry whether the path name contains the final backslash or not.