Renaming Multiple Files at the Same Time

by Barry Dysert
(last updated September 26, 2016)

2

It's possible to rename multiple files at the same time. In fact, there are a couple of ways to do it. Perhaps the simplest way is to use Windows Explorer. Say that you have a group of files such as what appears in the following figure: (See Figure 1.)

Figure 1. A set of files to be renamed.

To rename these files, create a selection set of the files (creating a selection set is covered under another tip) so that they are all selected. You can then press F2 (or right-click on a selected file and choose Rename from the Context menu) and type the "base name" you want each of your files to have. (See Figure 2.)

Figure 2. Renaming a selection of multiple files.

When you press Enter to complete the rename, each selected file will end up with the same base name with numbers following it in parentheses. (See Figure 3.)

Figure 3. The set of files after the rename.

There is another way to rename a set of multiple files. This second way uses the FOR command at the Command Prompt (displaying the Command Prompt is covered under another tip). Again, assume that you have the six files as shown in the first figure, above. To rename all six, go to the Command Prompt and type the following (terminating by pressing the Enter key):

C:\> FOR /L %I IN (1,1,6) DO REN 00000%I.JPG "Hawaii (%I).JPG"

 This tip (12883) applies to Windows 7, 8, and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 30 years, working in different positions such as technical team leader, project manager, and software developer.  He is currently a senior software engineer with an emphasis on developing custom applications under Microsoft Windows. ...

MORE FROM BARRY

Displaying Details about a Graphics File

Graphics files have additional attributes that other files don't have. This tip describes how you can display these ...

Discover More

Creating a System Repair Disk on a USB Flash Drive

Having a system repair disk is almost as important as doing regular backups. CDs and DVDs, though, tend to get scratched and ...

Discover More

Using Powercfg to Export and Import a Power Scheme

You can export to a file your power schemes and then import them later on. The only caveat is that you must be running as ...

Discover More
More WindowsTips

Using Robocopy to Mirror Directories

It's simple to use Robocopy when dealing with entire directories. Dealing with directories is what it does best! This top ...

Discover More

Assigning a Picture to a Folder

Windows allows you to customize many aspects of its user interface. One thing you can modify is how a folder's icon appears ...

Discover More

Creating a Bootable USB Flash Drive

If your hard disk becomes problematic to the point where you can't even boot from it, you'll be glad you have a bootable USB ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 5 + 0?

2016-09-27 00:00:16

Roger H.

How do I select and move a bunch of files into a folder?


2016-09-26 07:27:28

Peter Stern

For years I have used "A.F.5 Rename your files 1.1" which is a great little utility written by Alex Fauland. It can be found at www.fauland.com, and is both a powerful renaming utility for Windows and quite benign to your system.


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.