Categories: Uncategorized

How to Rename One or Multiples Files with Command Prompt in Windows 10

This article intends to make use of Command Prompt to rename both a single file and multiple files with a simple script. This script runs only on Command Prompt. Also, the script doesn’t require any administrative permission, and therefore it will even help out users at their workplace as organizations usually only provide users with basic level user accounts.

 

Solutions

Solution 1: Rename A Single File with Command Prompt

For renaming a single file, Command Prompt isn’t really that necessary as it can be done easily with the help of Windows Explorer. However, knowing the basic syntax of the command which is used to rename files will do no harm and this is what we’re out to do so in the following lines.

  1. Open the start menu.
  2. Search for Command Prompt. Once it’s displayed in the Search Results, click it to open it.
  3. Type the following commands to navigate to the desired location where the file (to be renamed) is located. Replace C with the drive letter of the partition where the file is located, Path is the full path of the folder where the file is located:
    cd C:\path
    C:



  4. Type the following command to rename the desired file:
    ren filename.extension newname.extension
  5. Then it should look like this.
  • The file before being renamed.

  • The file after it has been renamed.

    Single file renamed

 

Solution 2: Rename Multiple Files with The Command Prompt

  1. Click the start button.
  2. Search for Command Prompt and open it.
  3. In Command Prompt, type the following commands to navigate to the desired location where the file that has to be renamed is located. Replace C with the drive letter of the partition where the file is located. Path  denotes the full path of the folder where this file resides:
    cd C:\path
    C:



  4. Type the following command in the command prompt to rename multiple files at once:
    ren *.fileExtension *.newExtension
  • File before the renaming operation:

  • File after the renaming operation:

    Batch of files renamed

Raza Ali Kazmi

Raza Ali Kazmi works as an editor and technology content writer at Sorcim Technologies (Pvt) Ltd. He loves to pen down articles on a wide array of technology related topics and has also been diligently testing software solutions on Windows & Mac platforms. If you have any question about the content, you can message me or the company's support team.

Share
Published by
Raza Ali Kazmi

Recent Posts

Cloud migration assistant Google Photos and Onedrive Business

Google Photos and OneDrive Business are prominent players in the realm of cloud migration. Both…

3 weeks ago

What to Do When Memory Integrity in Windows 11 is Off? 6 Easy Fixes

Hypervisor-protected code integrity, simply known as Memory Integrity in Windows 11, is used to shield…

3 weeks ago

Duplicate 1040x Files in Computer

The 1040-X is also known as the Amended U.S. Individual U.S. Income Tax Return form.…

1 month ago

Accountants Can Remove Duplicate Tax Return Files Using Clone Files Checker

Accountants manage tax return files as one of their services, and if they have many…

1 month ago

How to Find Duplicate Music Tracks in USBs/ USB Library Files

Whether music is your biggest passion or you only hear it from time to time,…

1 month ago