+5 votes
70 views
Mass Rename Files Windows 11

in Windows11 by (552k points)
reopened | 70 views

1 Answer

+3 votes
Best answer

1 Rename Files Massively Windows 11 From File Explorer
2 Rename Files Massively Windows 11 From CMD
3 Rename Files Massively Windows 11 From PowerShell

One of the main uses that we give to the computer is to store different information and data since in this way we can have a number of files and documents without the need to occupy physical space, in addition to which access is much easier and we can access it from any part in most cases..

 

 

We constantly create files and folders with names associated with its content, which facilitates administration so that locating it is as simple as possible, but it may happen that at some point we need to change the name of one or more files. TechnoWikis will explain how to carry out this process in a massive way without having to do it individually, which can lengthen the process if there are enough files.

 

That is why below we show you all the steps you must follow to know how to rename Windows 11 Files Massively in different ways, step by step each of them..

 

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

 


1 Rename Files Massively Windows 11 From File Explorer


One of the methods to achieve file renaming in Windows 11 is using File Explorer itself, which is where these objects are stored.

 

Step 1

In this case we open the File Explorer to see the files to rename:

 

image

 

Step 2

We click on "View - Details" (if it is not):

 

image

 

Step 3

This in order to see the file extension in the "Type" column and other file information, if there are few files we select the element to rename and press the F2 key or click on "Change name":

 

image

 

Step 4

Enter the new name:

 

image

 

step 5

Now with the Tab key we go to the following file to rename it:

 

image

 

step 6

We can repeat this process (using the Tab key) in the necessary files:

 

image

 

step 7

To rename all the files, first of all we select all the objects to be renamed and click on "Change name":

 

image

 

step 8

We enter the desired name:

 

image

 

step 9

Entering the name and pressing Enter will assign it to all the others:

 

image

 

For reasons of repetition, logically, the File Explorer will assign the file number (1), (2), etc. in descending order.
Its usage syntax is as follows:

 ren [<drive>:][<path>]<file1> <file2> 

2 Rename Files Massively Windows 11 From CMD


It will also be possible to carry out this process from the CMD console and for this we will use the Ren (Rename) command, this command allows us to rename elements based on the criteria that we assign, to take into account with the use of Ren:
  • File 2 must be a unique file name, that is, in case the name of file 2 exists with an existing one, we will see the message: Duplicate file name or file not found
  • Characters that are wildcarded in file2 must be identical to the characters in file1
  • Unable to make use of a new drive or path when renaming files

 

Step 1

To use Ren for the purpose of renaming files we open CMD as administrator:

 

image

 

Step 2

Using the "cd" command we go to the path where the files are and list the content with "dir":

 

image

 

Step 3

To change the name of a file we execute the syntax:
 ren file.extension new_name.extension 
image

 

Step 4

Validate the change:

 

image

 

step 5

We check the name of the files to edit:

 

image

 

step 6

To rename multiple files we execute the syntax:
 ren *.extension ???-file_name.* 
image

 

step 7

We confirm the change in the files:

 

image

 

In this case, the ¿ sign retains the letter of the original file, we have added 3 question marks plus the line “-solvetic-internet” so that the file remains with the three initial letters plus the text that we have added.

 

step 8

To cut words we execute the syntax:
 ren *.* ?????.* 
Note:
the amount of ? indicates how many letters to cut

 

 

 

image

 

step 9

We observe the changes:

 

image

 

step 10

Again we validate the name of the files to work:

 

image

 

step 11

To modify multiple files we execute:
 ren Part_name*.* new_part.* 
image

 

step 12

Observe the change where it has been applied:

 

image

 

step 13

Open File Explorer with the files to edit:

 

image

 

step 14

To change the extension of a file we execute the syntax:
 ren *.extension *.new_extension 
image

 

step 15

In this case we have gone from a .txt text file to a .docx Word file, we confirm the change:

 

image

 

 


3 Rename Files Massively Windows 11 From PowerShell


In the case of PowerShell, the Rename-Item cmdlet will be used, which is responsible for changing the name of an element in a namespace and this cmdlet does not modify the content of the source element.

 

Step 1

To use it, open PowerShell as administrator:

 

image

 

Step 2

We use the command "cd" go to the path where the files are and with "dir" we generate the list of available files:

 

image

 

Step 3

To change the name of a file we execute the syntax:
 Rename-Item file.extension new_name.extension 
image

 

Step 4

Confirm the change:

 

image

 

step 5

We see the files to work:

 

image

 

step 6

To rename multiple files we execute the syntax:
 ls | %{Rename-Item $_ -NewName ("new_name-{0}.extension" -f $nr++)} 
image

 

step 7

Validate the change:

 

image

 

step 8

In this case we have changed both the name and the type of extension of the files.
Again we observe the files to edit:

 

image

 

step 9

To cut words we execute the syntax:
 ls | Rename-Item -NewName {$_.name.substring(0,$_.BaseName.length-N) + $_.Extension} 
Note
N is the number of letters to trim

 

 

 

image

 

step 10

Confirm the change:

 

image

 

step 11

In the File Explorer we see the current name of the files:

 

image

 

step 12

To delete a part of the word we execute:
 ls | Rename-Item -NewName {$_.name -replace "part_to_delete",""} 
image

 

step 13

We validate the change:

 

image

 

The described word has been deleted..

 

step 14

Look at the files again:

 

image

 

step 15

To replace a part of the name we execute:
 ls | Rename-Item -NewName {$_.name -replace "part_to_replace","new_part"} 
image

 

step 16

We confirm that the change has been made:

 

image

 

step 17

Again we see which files have to be worked on:

 

image

 

step 18

To remove spaces and assign a symbol between the name, we execute the following:
 ls | Rename-Item -NewName { $_.Name -replace " ","separator" } 
image

 

step 19

In this case, a hyphen (_) has been added between the two words of the name:

 

image

 

step 20

We open the File Explorer to check the elements:

 

image

 

step 21

To change the extension of the file, or of all, we execute:
 ls | Rename-Item -NewName { [io.path]::ChangeExtension($_.name, ".new_extension") } 
image

 

step 22

In the Explorer we validate the change:

 

image

 

Step 23

Finally we see the current name of the files:

 

image

 

step 24

To change the name and associate an extension we execute the syntax:
 ls -filter *.extension | %{Rename-Item $_ -NewName ("new_name-{0}.extension" -f $nr++)} 
image

 

step 25

In this case the files will now be called “solvetic”:

 

image

 

With these console and interface options, it is possible to rename one or more files in Windows 11 based on current needs.

 


by (3.5m points)
edited

Related questions

+4 votes
1 answer
+4 votes
1 answer
+5 votes
1 answer
asked Nov 24, 2020 in Help by backtothefuture (552k points) | 225 views
+3 votes
1 answer
asked Jun 23, 2019 in Windows 10 by backtothefuture (552k points) | 210 views
+5 votes
1 answer
asked Nov 7, 2023 in Windows11 by backtothefuture (552k points) | 67 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users