#1 2011-06-22 16:20

JohnnySH
Member
Registered: 2007-08-31
Posts: 11

Rename with duplicated serial numbers

Hello

I have a complete directory of files that I need to add a serial number, but I would like it to step by 2 before it increments to the next sequential number. like below



They are like this...

SF300-Aggro Santos & Kimberly Walsh - Like U Like.cdg
SF300-Aggro Santos & Kimberly Walsh - Like U Like.mpe

SF300-B.O.B - I'll Be In The Sky.cdg
SF300-B.O.B - I'll Be In The Sky.mp3



I would like them to be like this...

SF300-01 - Aggro Santos & Kimberly Walsh - Like U Like.cdg
SF300-01 - Aggro Santos & Kimberly Walsh - Like U Like.mpe

SF300-02 - B.O.B - I'll Be In The Sky.cdg
SF300-02 - B.O.B - I'll Be In The Sky.mp3

and so on to the end...

Please can you advise how to do this in renamer

Thank you

Offline

#2 2011-06-22 18:08

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Rename with duplicated serial numbers

This will probably will need from PascalScript.

But, from the names you have, have you thought the method to insert the number in that place?
I mean, is not the same if you always have "SF300-" at the begining, or it does change for the rest of names.
The number could be inserted in a fixed position (e.g.: position: 7), or for example, after the first dash.

Last edited by SafetyCar (2011-06-22 18:09)


If this software has helped you, consider getting your pro version. :)

Offline

#3 2011-06-22 18:09

ponytail bob
Member
Registered: 2009-09-22
Posts: 3

Re: Rename with duplicated serial numbers

I've been doing karaoke on a computer for 10 years now.
Don't know if Renamer will number as you want without doing the mp3's & cdg's seperatly, but the way i would handle that is download down load MP3+G Toolz (free program) & use that to turn them into zips.

Then use Renamer to  serialize the sequential numbers using position, then insert the "( - )". After renaming them use MP3+G Toolz to extract & both files will be renamed as you want them.

MP3+G Toolz is a must for karaoke on a computer. It will rename from numbers off the internet, clean file names & more with a simple right-click on the ciontaining folder.
If you need help in other areas with your show, feel free to email me

Offline

#4 2011-06-22 18:21

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Rename with duplicated serial numbers

This will give you the numbers, but not positioned. If this isn't useful I'll need you to answer my previous question.

const
  Repetitions = 2; // Number of repetitions.

var
  Num, Rep: Integer;

begin
  Rep := Rep + 1; // Current repetitions.

  {Check if needs to update/add.}
  If (Rep>Repetitions) then
  begin
    Rep := 1; // Restart repetitions.
    Num := Num + 1; // Serialization.
  end;
  
  {Write the number in front of the name.}
  FileName := IntToStr(Num) + FileName;
end.

Last edited by SafetyCar (2011-06-22 18:23)


If this software has helped you, consider getting your pro version. :)

Offline

#5 2011-06-22 19:16

JohnnySH
Member
Registered: 2007-08-31
Posts: 11

Re: Rename with duplicated serial numbers

thank you to everyone, appreciated

I have chosen ponytail bob route, this works very well

Thanks again

Offline

#6 2011-06-22 19:18

JohnnySH
Member
Registered: 2007-08-31
Posts: 11

Re: Rename with duplicated serial numbers

Under the serialise option in Renamer, it would be great to have a skip option that you could adjust (offset) so that it would do this task before incrementing the next number.

Just a thought for a future upgrade

Offline

#7 2011-06-23 12:10

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

Offline

Board footer

Powered by FluxBB