#11 2010-05-25 20:59

FranCi
Member
From: Germany
Registered: 2010-05-22
Posts: 5

Re: Serialize duplicates - alternative

Works like a charm! Thanks a lot to everybody for their contribution to solve this!



FranCi

Offline

#12 2015-05-10 14:23

Gerhard87
Member
Registered: 2015-05-03
Posts: 6

Re: Serialize duplicates - alternative

Almost exactly what I was looking for.
But is it possible to change the new filename in this way:

From:
test -1
test -2

to:
test -1of2
test -2of2

Thanks

Offline

#13 2015-05-12 20:30

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

Re: Serialize duplicates - alternative

Gerhard87 wrote:

Almost exactly what I was looking for.
But is it possible to change the new filename in this way:

From:
test -1
test -2

to:
test -1of2
test -2of2

If "of 2" stands for the total number of files in ReNamer then you can use GetTotalNumberOfFiles function in PascalScript.

Offline

#14 2015-05-13 11:22

Gerhard87
Member
Registered: 2015-05-03
Posts: 6

Re: Serialize duplicates - alternative

In my case of 2 stands for the total number of files with the same name

alpha -1of2
alpha -2of2
beta
test -1of3
test -2of3
test -3of3

I found already the line to edit.

          NewFileName :=
            WideExtractBaseName(FileName) +' [' + IntToStr(Counter)+'of' + inttostr(Count)+ ']' + WideExtractFileExt(FileName);
   

I just had to add the count variable.

Thanks

Offline

Board footer

Powered by FluxBB