renaming files

first off, I am being lazy. It has been a long week and instead of jumping feet first in the docs/examples, I am going to be lazy and as the question here.

if I have a folderitem pointing to a file, and I want to rename the file extension of the file, what is the best way to do it?
If I have the extension of “email” and want to change it to “processed”. MBS’s nameextensionMBS gives me what the extension is, but doesnt accept input to change it.

Maybe this is a sign I should give up working and start the weekend…
sb

PS> thanks for all the help!

Simple as pie :
http://documentation.xojo.com/index.php/FolderItem.Name

Have a good Week end :slight_smile:

Michel, thanks.