Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a list of random file names. I want to use this list to rename all files in a particular folder.

The folder contains the files:


I want them to be renamed using names from a list.txt

Mike.exe -> Mickey.exe

Like this. What Windows BAT script or tool can do this?

Content of Name.list looks like:

Lorem Ipsum
Foo Bar
Baz Yak

And The file.list looks like:


All files are exe's.

share|improve this question
How exactly should the content of list.txt look like? – FSMaxB May 24 '13 at 6:43
If you have a list.txt with lines of the Format "Mike.exe Mickey.exe", then just prepend a "ren " to each line, rename the file as list.bat and run it. – Werner Henze May 24 '13 at 6:46
@FsMaxB 1 Name per line – user226499 May 24 '13 at 6:59
So you actually have two lists? Or do you want to rename the files in a folder in alphabetical order, so the first file alphabetically gets the first filename in the list? – FSMaxB May 24 '13 at 7:27
I have one folder with random files. And one list with Random names. I need to use this list name to rename file in folder. Order doesn't matter. Just need then to be renamed. – user226499 May 24 '13 at 7:29
up vote 1 down vote accepted

Flash Renamer (shareware, but free to use) can accomplish this. Suppose you have five files in a folder: 1.txt, 2.txt, 3.txt, 4.txt, and 5.txt. You'll then want a CSV file containing your rename rules, looking something like this:


(The program is flexible with the choice of delimiter and which columns contain the find and replace strings, however, so that format is not a hard and fast requirement.) See this screenshot for a demonstration -- navigate to the folder containing your files (the third icon in the toolbar above the explorer), specify the CSV file containing your rules on the left, then click Rename on the bottom.

share|improve this answer
Thanks :) . It really helped me . – user226499 May 25 '13 at 3:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .