CMD Rename Multiple Files Prefixes A quick and effective solution to bulk rename your files and/or adding prefixes using CMD, PowerShell or the Easy File Renamer tool

Top Coding Apps for Kids

If you’re dealing with a lot of files everyday, chances are that your file system is messed up: poorly named files in your collection can waste a lot of your time finding the right file.

Confusing file names can affect your overall productivity. To deal with this issue, you might want to rename your files.

Benefits of Renaming your Files & Adding Prefix

There are multiple benefits of renaming your files: 

  • Makes it easy to organize your files
  • Files become accessible in few clicks
  • Search results are not cluttered with too many unwanted entries
  • As there is no confusion with file names, you don’t spend time working on the same file again
  • Setting logical names to your files help you distinguish them from other files

Using Command Prompt

Command Prompt is the default command-line interpreter in Windows. You can use Command Prompt to automatically rename multiple file prefixes. To rename your files, you need to first set the active directory and then execute the main query.

  1. Type Command Prompt in the Search Box on your Taskbar.
  2. Open Command Prompt from the search results.
  3. Set the active directory to the folder that contains the files you want to rename:
    • cd <your directory>
  4. Type the following command to rename your files:
    • for %a in (*.*) do ren "%a" "prefix - %a"

Using Windows PowerShell

Windows PowerShell is an interactive command-line shell primarily used by system administrators and IT professionals. PowerShell supports batch renaming of your files and adding prefix. Here’s how:

  1. Type Windows PowerShell in the Search Box on your Taskbar.
  2. Open Windows PowerShell from the search results.
  3. Set the active location to the path that contains your files:
    • cd <your directory>
  4. To rename your files:
    • dir | Rename-Item -NewName {$_.Directory.Name + " - " + $_.Name}

Using File Explorer

File Explorer was earlier known as Windows Explorer. We use it almost everyday to browse through our files and folders. With a few handy tricks, we’ll use the File Explorer to rename multiple files in our collection and get rid of disorganization.

  1. Open File Explorer.
  2. Go to the folder that contains your files.
  3. Select the files you want to rename.
  4. Press F2 key.
  5. Type a new name for your files and then press Enter.

Using Easy File Renamer

Easy File Renamer is powered with multiple renaming patterns to make the task simple and easy. With just a few steps, you can select the files to rename, your renaming pattern and proceed.

Easy File Renamer lets you batch move or batch copy files without errors. Smoothly copy and move large files without encountering any error. You can also rename music tags using the music tag fixer feature.

With your purchase of Easy File Renamer, you get a complimentary subscription to Cloud File Renamer. Using CFR, you can rename files stored on different cloud platforms such as Amazon S3, Google Drive, Dropbox and OneDrive.


  1. Download Easy File Renamer.
  2. Click on the System Renamer tab.
  3. Click on Add Files and select the files you want to add for renaming.
  4. Select your desired renaming rule from the left-side panel
    • Insert text
    • Remove or replace text
    • Change the text case
    • Add prefix
    • Add postfix
    • Add numbering
  5. Click on Add Rule.
  6. You can apply multiple renaming patterns at once.
  7. Click on Rename.


That's it, at least for now: I hope that this small article will help those who are looking for a simple and convenient way to bulk rename their files.


About Aysha Khan

Aysha Khan works as an Editor and Writer at Sorcim Technologies. Sorcim makes software and web-apps. You can use its’ file renaming software Easy File Renamer here: Learn More About Windows File Renaming.

View all posts by Aysha Khan

2 Comments on “CMD Rename Multiple Files Prefixes A quick and effective solution to bulk rename your files and/or adding prefixes using CMD, PowerShell or the Easy File Renamer tool

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.