Here's a cool trick for Windows users that will save you from buying batch file renaming software (or spending hours trying to find good freeware batch renamers). Not to mention most batch renamers are very basic and do not allow duplicate rules for renaming--for example searching for text and renaming the filename accordingly. This method of batch file renaming uses the .bat file format, which can be created in Notepad.
Here are the steps to creating a batch renamer:
1. Open Notepad
2. Use the following code to identify text and rename the file.
for %%f in ("*D2*") do (
if not !str!==01 ren "%%f" "01-%%f"
3. Right now this code takes all filenames containing the text, "D2", and adds "01-" at the beginning of the name. Add as many of these renaming rules as you wish, repeating the last paragraph of code as needed (the text in bold is what you need to edit).
4. Save as a .bat file and run it! Be warned, you cannot undo the changes the .bat file makes, so keep a backup the files being operated on!
This renaming system is really useful for renaming samples from traditional note-name-based filenames to number-based ones which will sort alphabetically correctly (making them much easier to map in Kontakt or other sampler).
It's a bit of manual work setting up the .bat file with each note, but once you make the .bat file, you can reuse it as many times as you like.
Enjoyed reading this blog article? Check out the other articles in this topic: DIY Sampling