Renaming Multiple Files at the Same Time

Written by Barry Dysert (last updated October 5, 2020)

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 File 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 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...

MORE FROM BARRY

Introduction to Regular Expressions

Regular expressions are usually the domain of computer programmers. There are times, though, when an end-user might find ...

Discover More

Working with Compressed Files and Folders via Zip

Windows 10 provides multiple ways to work with compressed files and folders. One great way is to use the Zip utility, ...

Discover More

Restoring Your System from a Restore Point

Restore Points let you go "back in time" to a point before you made system changes that could prove harmful to your ...

Discover More
More WindowsTips

Adding Locations to the Search Index

You can fine-tune Indexed Searches by adding locations to the search index. This tip tells you how.

Discover More

Where Is that File I Just Downloaded?

Downloading files from the Web is a pretty common occurrence. Keeping track of your downloads used to be a bit of a ...

Discover More

Opening a File with a Program Other than the Default

Windows determines a program to use with a particular file based on the file's type. If you want to temporarily override ...

Discover More
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}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. 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 three less than 4?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips