#1 2016-01-26 11:04

drnesr
Member
Registered: 2016-01-26
Posts: 1

Apply rules only if length of filename exceeds some value

Peace be upon you all

I would like to rename all the files in a directory (and even the folder names) if and only if their length exceeds 30 characters

How can I do that?

Also I would like to check the full path, if it exceeds 200 char, it should do some rules like remove vowels from each part of the path
Can this be done, and how?

Many thanks in advance...

Last edited by drnesr (2016-01-27 15:26)

Offline

#2 2016-01-27 22:08

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

Re: Apply rules only if length of filename exceeds some value

drnesr wrote:

I would like to rename all the files in a directory (and even the folder names) if and only if their length exceeds 30 characters

You can use the context menu of files table to select items which exceed a certain size. Then invert the selection and remove those files.

drnesr wrote:

Also I would like to check the full path, if it exceeds 200 char, it should do some rules like remove vowels from each part of the path

You can check full path length in PascalScript and perform pretty much any operation from there.

You could also use a PascalScript rule to insert a marker into files which you can then easily remove from the list using the same context menu of files table.

Offline

Board footer

Powered by FluxBB