Hi Zakizdaman
As far as i understood you want to rename copies of the same file to many different names?
If yes, I would try it this way:
1.) make 1000 copies of the file "Grunt.Perfect.wav":
Grunt.Perfect_0001.wav
Grunt.Perfect_0002.wav
...
Grunt.Perfect_1000.wav
2.) make a list from all that file names to a text file:
Grunt.Perfect_0001.wav
Grunt.Perfect_0002.wav
...
Grunt.Perfect_1000.wav
3.) make a list of all the wanted file names to a text file:
Ezreal.Attack1.wav
Ezreal.Attack2.wav
Draven.Taunt1.wav
...
4.) paste them together in another text file:
Grunt.Perfect_0001.wav|Ezreal.Attack1.wav
Grunt.Perfect_0002.wav|Ezreal.Attack2.wav
...
Grunt.Perfect_1000.wav|Draven.Taunt1.wav
5.) Utilize from BRU "Renaming From A Text File"
- - -
How-to:
1) make 1000 copies:
Utilize CopyToMany.cmd
- Code: Select all
@ECHO OFF
CD %~dp0
SET base=Grunt.Perfect
SET exte=wav
ECHO copy one file to many; StS 2012
ECHO working, please wait...
setLocal EnableDelayedExpansion
for /L %%D in (1,1,1000) DO (
SET digit=0000%%D
SET digit=!digit:~-4!
copy %base%.%exte% %base%_!digit!.%exte% >NUL
)
ECHO. & ECHO All done! & PAUSE
Or with PowerShell:
for($index=1; $index -lt 1001; $index++){ $CopyPattern = "Grunt.Perfect_{0:D4}.wav" -f $index; copy Grunt.Perfect.wav $CopyPattern; }
2 + 3) make a list of file names:
- go into the folder
- open a DOS-Box (command line interpreter)
- be sure to have your current working dir in that folder
- utilize:
DIR /B >filelist_1_origin.txt- utilize:
DIR /B >filelist_2_wanted.txt4) paste that two lists together:
See at 5) for how to utilize Excel,
or utilize e.g. PowerShell like in this example:
PS C:\temp\BatchTEST> $origin = Get-Content filelist_1_origin.txt
PS C:\temp\BatchTEST> $wanted = Get-Content filelist_2_wanted.txt
PS C:\temp\BatchTEST> $len=$origin.length
PS C:\temp\BatchTEST> $out = for( $idx=0; $idx -lt $len; $idx++) { "{0}|{1}" -f $orign[$idx], $wanted[$idx] }
PS C:\temp\BatchTEST> $out | out-file .\merged.txt
Now use merged.txt for BRUs "Renaming From A Text File"
5) utilize "Renaming From A Text File"
see http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=2&t=1526&p=4120
HTH?
- - -
Edit: added PowerShell example to create 1000 copies of a source file.