changing names of hundreds of files at once

I have about 1000 files that I want to change the names of. They are all in the format of AAABBBB.xyz

I want to remove the AAA part on all of the files and possible replace it with CCC.

Can I do this easily without having to go to each file, right click to rename…etc.

Assuming you are using some variant windows and have a spreadsheet, here is a rough outline of a process. Hopefully someone will post a better option.

  1. Get a list of the files (drop to a command window and dir/b is one option)
  2. Paste the results into a spreadsheet
  3. Use the text functions to generate “rename” statements
  4. Paste the statements into a batch file and run it.

I’m assuming this is Windows and that the files are in the same directory.

You want to open a command prompt and use something along the lines of

FOR %f in (a b c … z) do for %g in (a … z) do for %h in (a … z) do for %i in (a … z) do if exist AAA%f%g%h%i ren AAA%f%g%h%i CCC%f%g%h%i

You’ll need to expand the a…z elements.

Look at the help for the FOR command for more info.

I use this thing http://sourceforge.net/projects/batchrenamer/

I use bulkrenameutility. Works like a charm and has many options for renaming, removing/replacing characters, etc. Best of all, it’s free.

I use Rename Maestro.

This is exactly how I do it. Well, except I don’t “paste the results into a spreadsheet,” I do dir /b > file.txt and open file.txt in the spreadsheet.

I’m glad someone asked this question, I’ve been meaning to do so for a while…I’ll have to check out some of those options as well.

Also, I initially read the thread title as “changing names of hundreds of **flies **at once,” and I was thinking, “you own hundreds of flies as pets?” :slight_smile:

If it’s an MS OS, and you’re not making the filenames longer, just go


ren AAA* CCC* 

(If they’re using 8.3 filenames, and you try to prepend longer text, the result could be not what you want. If they’re using long filenames already, it’s okay.) :slight_smile:

I’ve been using The Rename for years and it works very well.

http://the-rename.herv-thouzard.qarchive.org/

I’m with Nanoda - Windows already has a rename command with wildcards. Why go with an additional utility when the capability has been part of Microsoft OS’s for 20 years?

Um, I’m sure those aren’t literal ‘A’ characters.

Bulk Rename Utility, mentioned above. I use it for work, and it has been a gem.

I just select the files in Windows Explorer, F2 to rename, and enter the new name. It renames them all like Filename (1).doc, Filename (2).doc, etc. Would this work for you?

I’m pretty happy with Rename Master. It’s free.

It appears to be much more capable than the native Windows rename command, and it’s definitely a lot easier to use. It gives you many options to insert file metadata into the new name, for example; the date a photo was taken is the only thing from the list that I use with any frequency. (I’ve found file renaming in Windows maddening - the wildcards don’t act the way I expect them to and I just screw everything up. I can then go back and fix it with Rename Master…)