how to rename bulk files from a copied bulk file names.

Post any Bulk Rename Utility support requirements here. Open to all registered users.

how to rename bulk files from a copied bulk file names.

Postby Rohth_Kumar_Sp » Wed Jun 01, 2016 3:32 pm

i know how to copy bulk filename via bulk copy to clipboard, but how do i use that and rename bulk files in a different folder ?
Example :

Folder A has 20 Files
apple 1x01 - pilot
apple 1x02 - episode name x
apple 1x03 - episode name y
apple 1x04 - episode name z .........

Folder B has 20 Files

apple 01 - random name
apple 02 - random name x
apple 03 - random name y
apple 04 - random name z .........

i want to copy the file names in bulk from Folder A and rename it to Folder B.

please do guide me, i'm lost. i'm new to this utility.

thanks :D
Rohth_Kumar_Sp
 
Posts: 2
Joined: Wed Jun 01, 2016 3:25 pm

Re: how to rename bulk files from a copied bulk file names.

Postby therube » Wed Jun 01, 2016 6:25 pm

Does this do it?

Code: Select all
apple 01 - random name|apple 1x01 - pilot           
apple 02 - random name x|apple 1x02 - episode name x
apple 03 - random name y|apple 1x03 - episode name y
apple 04 - random name z|apple 1x04 - episode name z
...


(The UNIX command, paste, makes it easy to take two text files & lay them out, side-by-side, like that.

Code: Select all
C:\TMP\> paste.exe  -d"|"  old_names.TXT  new_names.TXT

(Now if I could only remember how to do that with Vim!)


Oh, that was easy (to do). The remembering part was hard!
Luckily... Vim: How do I paste a column of text after a different column of text?
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: how to rename bulk files from a copied bulk file names.

Postby therube » Wed Jun 01, 2016 6:48 pm

So something like this, in "quasi-code".

Code: Select all
A:\  DIR /b  > old
B:\  DIR /b  > new

paste  -d"|"   old  new  > rename-file

BRU, Actions | Import Rename Pairs -> rename-file


I guess that's the general idea?

(You'd have to figure what tools work for you to get things in a format that BRU can use.)


A BASIC-like language, maybe something like this:
Code: Select all
0010 OPEN (3)"old.name.txt"
0020 OPEN (4)"new.name.txt"
0025 open (9)"rename-file"
0030 READ (3)X$           
0040 READ (4)Y$           
0050 PRINT X$,"|",Y$       ; rem  displays on screen
0055 write (9) x$,"|",y$   ; rem  writes to file, "rename-file"
0060 GOTO 0030             
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: how to rename bulk files from a copied bulk file names.

Postby Rohth_Kumar_Sp » Thu Jun 02, 2016 3:55 am

@therube Although you're trying to help i have no idea what i'm suppose to do with the text

apple 01 - random name|apple 1x01 - pilot
apple 02 - random name x|apple 1x02 - episode name x
apple 03 - random name y|apple 1x03 - episode name y
apple 04 - random name z|apple 1x04 - episode name z
...


can you please guide me on it ? sorry if it's any trouble.
Rohth_Kumar_Sp
 
Posts: 2
Joined: Wed Jun 01, 2016 3:25 pm

Re: how to rename bulk files from a copied bulk file names.

Postby Emerkamp » Thu Jun 02, 2016 6:57 am

You need to make a .txt or .csv file with your filenames list Like:
OldFilename|NewFilename

Then use: Actions>> import Rename-pairs

( Use a good .txt editor like np++ )
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm


Return to BRU Support