#11 2020-01-11 20:18

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: How to rename while keeping length below allowed max of 260 chars?

You can insert the ":File_FilePath:" meta tag into the new name and then manipulate the whole path with renaming rules.

For example, the rules below will truncate each component of the file path to a maximum of 10 characters long:

1) Insert: Insert ":File_FilePath:" replacing current name
2) Regular Expressions: Replace expression "([\\/])([^\\/]{1,10})[^\\/]*" with "$1$2" (skip extension)

You can change the number 10 to any other suitable number by adjusting it in the Regular Expressions rule.

Beware: Test your rules on dummy files before using them on real files, because you can do a lot of damage with such manipulations.

Offline

#12 2020-01-12 12:04

feraujo
Member
Registered: 2020-01-07
Posts: 15

Re: How to rename while keeping length below allowed max of 260 chars?

Does the meta tag ": File FilePath:" change the path or just add the path to the filename?
I am trying to use in my test file. Did not work. I must have typed it wrong.

Last edited by feraujo (2020-01-12 12:08)

Offline

#13 2020-01-12 16:57

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: How to rename while keeping length below allowed max of 260 chars?

feraujo wrote:

Does the meta tag ": File FilePath:" change the path or just add the path to the filename?
I am trying to use in my test file. Did not work. I must have typed it wrong.

The correct tag is:

:File_FilePath:

Alternatively, use the Insert Meta Tag button in the Insert rule to insert a correct tag.

It simply inserts the full original path in the new name filed, which you can then adjust as you wish.

Offline

#14 2020-01-12 21:12

feraujo
Member
Registered: 2020-01-07
Posts: 15

Re: How to rename while keeping length below allowed max of 260 chars?

this way i'm not directly changing the way

Offline

#15 2020-01-12 21:14

feraujo
Member
Registered: 2020-01-07
Posts: 15

Re: How to rename while keeping length below allowed max of 260 chars?

But what if this filename goes over the limit? The program can not rename and I will have problems in Windows to change this file. This is not a valid solution.

Last edited by feraujo (2020-01-12 21:41)

Offline

#16 2020-01-12 21:41

feraujo
Member
Registered: 2020-01-07
Posts: 15

Re: How to rename while keeping length below allowed max of 260 chars?

The rules do not work. How do I post pictures here for you to see? I tried to upload the photos but it didn't work out.

Offline

Board footer

Powered by FluxBB