Renaming parent folder with the selected file name

Hello,

I wondered if there's a way to rename the parent folder of a file using RegExp or Standard rename method?

I'm sure it could be done using some VB script, but as i'm not really good using RegExp yet, maybe there's a way to do it.....

Thanks for your help!

This will rename the parent folder to the same name as the selected file/folder (excluding file extension):

@firstfileonly Rename {filepath$|..|noterm} TO {file$|noext}

Thanks!

I'm not quite totally used to the various possibilities of {} arguments.

I see it was probably already discussed somewhere, but I didn't found it when making a search on the forum. Sorry about that!