Rename Sequentially

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
bluish
Posts: 2
Joined: 02 Sep 2009, 15:35

Rename Sequentially

Post by bluish »

Hi
Salamander 2.5
Is there a possibility that some kind person can help me do the following?

I have about 20000 files. I need to number them sequentially in front of each file.

The files are currently named as below:
SPC007 - 01 - Houston, Whitney - I Will Always Love You
SPC007 - 02 - Newton-John, Olivia & John Travolta - Summer Nights
SPC007 - 03 - B-52's - Love Shack
SPC007 - 04 - Kool & The Gang - Celebration
SPC007 - 05 - Ross, Diana & Lionel Richie - Endless Love
SPC007 - 06 - Seger, Bob - Old Time Rock & Roll
SPC007 - 07 - Midler, Bette - The Rose
SPC007 - 08 - Cocker, Joe & Jennifer Warnes - Up Where We Belong
SPC007 - 09 - Midler, Bette - Wind Beneath My Wings
SPC007 - 10 - John, Elton - Don't Let The Sun Go Down On Me

I need the files to finish like below including the DASH and SPACES:

00001 - SPC007 - 01 - Houston, Whitney - I Will Always Love You
00002 - SPC007 - 02 - Newton-John, Olivia & John Travolta - Summer Nights
00003 - SPC007 - 03 - B-52's - Love Shack
00004 - SPC007 - 04 - Kool & The Gang - Celebration
00005 - SPC007 - 05 - Ross, Diana & Lionel Richie - Endless Love
00006 - SPC007 - 06 - Seger, Bob - Old Time Rock & Roll
00007 - SPC007 - 07 - Midler, Bette - The Rose
00008 - SPC007 - 08 - Cocker, Joe & Jennifer Warnes - Up Where We Belong
00009 - SPC007 - 09 - Midler, Bette - Wind Beneath My Wings
00010 - SPC007 - 10 - John, Elton - Don't Let The Sun Go Down On Me

Many Thanks
User avatar
ino
Posts: 440
Joined: 09 Dec 2005, 14:59
Location: Brno, Czech Republic

Re: Rename Sequentially

Post by ino »

bluish wrote: Salamander 2.5
Is there a possibility that some kind person can help me do the following?

I have about 20000 files. I need to number them sequentially in front of each file.

I need the files to finish like below including the DASH and SPACES:
Hi following instructions should work in AS 2.5 (although I tested it in AS 2.53 PB 38).

It is really simple.

1) Select all your files you want to rename
2) Press Ctrl+Shift+R or go to menu Plugins - Renamer - Batch Rename...
3) into row New Name insert following

Code: Select all

$(Counter:1,1,d,5,0) - $(OriginalName)
4) Check out new name preview if it looks good pres Rename button

Explanation of step 3) at the end of that row is small button with arrow, click on it, select Counter... There you can define whatever you need. In this case I set to Start with number one, counter Steps by one, base Decimal, Minimal width set to five (to have four zeros at number one), Fill with Zeros to have zeros before number one. That's it. And not to forget to insert space dash space between counter and original name which I did in the New name field. See the screenshot:
Attachments
Rename.png
Rename.png (28.78 KiB) Viewed 3222 times
Post Reply