------------------------------------------------------------------------------
renaming avi files to match srt files...
Postby sampah » 14 Dec 2010, 21:29
hi, im new here, sorry if this not the right section...
here's the thing, i already rename my batch of subtitle files with the episode number, title and all...
how can i rename my video files to match those subtitle files, accordingly using BRU...
thanks...
-----------------------------------------------------------------------------
Re: renaming avi files to match srt files...
Postby Stefan » 12 Feb 2011, 20:51
For the challenge "Rename AVI files (old name) like SRT files (new name)"
Read the help about "Renaming From A Text File"
To use this facility, create a text file in for the correct format, for example:
Track001.mp3|Headlong.mp3
Track002.mp3|Rushes.mp3
TRACK003.mp3|AnywhereIs.mp3
As you see, there is one entry per line.
Next, click the Import option on the File menu and load your file. If the file is valid then you will see the "new name"
column reflecting the contents of the text file.
The idea of this post is to use excel to create such an text file.
Generally spoken:
having the old name in one column (A1), and the new name in an another (B1),
then merging that two columns and add an pipe-symbol "|" as delimiter.
The basic syntax in excel therefor is in column (C1) '= A1 & "|" & B1'
Then use the excel options to copy that formula down all lines.
- Code: Select all
A B C D E F
1 old1 new1 old1|new1
2 old2 new2 old2|new2
3 old3 new3 = A3 & "|" & B3
4 old4 new4
5 old5 new5
6 old6 new6
7
8
Please read an step-by-step explanation for the above challenge, for other issues you may skip some steps.
(EDIT: see the link at the end to see an picture how this looks in excel)
1)
Use
Selection(12) *.avi
to see *.AVI files only
2.)
select All and use context menu > copy to clipboard Name + Ext
3.)
Open Excel and paste this list to column A
- Code: Select all
A
AVI name.avi
AVI name.avi
AVI name.avi
4.)
In Excel column B cell 1 write an pipe symbol |
and use Excel to copy it in all cells down the B column
- Code: Select all
A B
AVI name.avi |
AVI name.avi |
AVI name.avi |
5.)
In BRU use
Selection(12) *.srt
to see *.SRT files only
6.)
select All and use context menu > copy to clipboard Name (without Ext)
7.)
paste this list in Excel column C
- Code: Select all
A B C
AVI name.avi | SRTname
AVI name.avi | SRTname
AVI name.avi | SRTname
8.)
In Excel write .avi into column D and paste it down the column
- Code: Select all
A B C D
AVI name.avi | SRTname .avi
AVI name.avi | SRTname .avi
AVI name.avi | SRTname
9.)
In Excel write this command into column E and paste it down the column
- Code: Select all
A B C D E
AVI name.avi | SRTname .avi =A1&B1&C1&D2
AVI name.avi | SRTname .avi =A2&B2&C2&D2
AVI name.avi | SRTname
to get
- Code: Select all
A B C D E
AVI name.avi | SRTname .avi AVI name.avi|SRTname.avi
AVI name.avi | SRTname .avi AVI name.avi|SRTname.avi
AVI name.avi | SRTname
10.)
select the E column and paste this as text to an text file:
- Code: Select all
AVI name.avi|SRTname.avi
AVI name.avi|SRTname.avi
AVI name.avi|SRTname.avi
AVI name.avi|SRTname.avi
11.)
In BRU use the "Renaming From A Text File" feature.
- Code: Select all
1. Select the folder which contains the objects you wish to rename.
2. Select the files you wish to process (use CTRL or SHIFT to select multiple files).
3. Enter the renaming criteria.
Here, click the Import option on the File menu and load your file.
If the file is valid then you will see the "new name" column reflecting the contents of the text file.
4. Hit the Rename button. (This button is not enabled unless you have selected one or more files/folders to rename!)
HTH?

Puhh, i hope i didn't mixed something up! avi, srt,,,srt,avi, excel, avi,srt,...

BTW:
we can also do this with Excel without all this steps between, just enter this as command:
= A1 & "|" & C1 & ".avi"
EDIT:
i have found an web side about Excel to help you using it: http://www.mrexcel.com/articles/function-to-merge-two-columns.php
IF that side is down, please find an picture of it there >>> http://forentmp.lima-city.de/BRU_Excel_Merge2Columns-c16.png