Page 1 of 1

Remove folder name from file names

PostPosted: Mon Jun 24, 2019 10:31 am
by tpoba4
Hi,

I know you can append folder name to the files under it, but can you remove them?

Example:

Folder1 have file Folder1-222.jpg. I would like that new name is -222.jgp.

I need this automated for multiple scenarios (not just rename before - for example).

Thanks in advance.

Re: Remove folder name from file names

PostPosted: Mon Jun 24, 2019 9:32 pm
by therube
How is one to determine if some "first part" of a filename is the same as the file's parent directory name?


Suppose with BRU's JavaScript renaming, you could do that.
Something like: if name.parent == part(name.name) ... (but with JS).

Re: Remove folder name from file names

PostPosted: Tue Jun 25, 2019 1:27 am
by Admin
Hi, yes, with Javascript it can be done, e.g. check folder name, if found in name remove it. Javascript requires a commercial license.
If you contact support via e-mail we can help writing the script. thanks