You haven't said what the relationship of the folder to the file is, but if it's the folder the file is contained in, the following command will do it:
That actually works but needs a tweak. I would like to only change the name of the files I selected. Is that possible?
I am renaming files and preparing for a ECM migration, and descriptive folder name needs to be in the filename since these files will be moved around and eventually in a new system.