Top Ad unit 728 × 90

Latest News

Technology

How To Change Extension Of All Files In A Folder Using CMD | Geek Winky

Changing the file extension for every particular file is one of the tedious job to do. And if you want to change the extension of files in bulk then you become drowsy doing so. To make your job easier we had a trick to share with you. 
There are many reasons to change your file extension according to use. To change the file extension in bulk you just need to follow the simple steps mentioned below...


Geel Winky
Image Source - Geek Winky
Batch Change/Rename File Extension In Windows 
Before carrying out the desired process, you first need to copy the files in a particular folder for which you want to change the extension.

Step 1 - First of all, locate the folder containing all the files for which you want to change the extensions. 

Geel Winky
Image Source - Geek Winky
Step 2 - Now press the shift key and right-click on the folder together. Here I have named my folder as sample which was situated on one of the drives.

Geel Winky
Image Source - Geek Winky
Step 3 - Now, a list of the different operation will show up there, all you need is to select the "open command window here" option.

Step 4 - It will start the command prompt with the path of the folder in it. First, explore the folder contents to show you the current extension of all the files. For this you have to write the command "dir" just after the path specified in the console screen.
Refer to the image below for better acknowledgement.

Geel Winky
Image Source - Geek Winky
Step 5 - It will show you up all the files contained in the folder with their names and particular extensions.

Step 6 - I have stored 9 files with .docx extension and 7 files with .pdf extension.
Firstly I change the extension of .docx to .txt . For this we use the command
                                       ren  *.docx  *.txt                

Geel Winky
Image Source - Geek Winky
Now use the dir command to view the extension of files
The above command was for changing one type of extension to other. But if you want to change all the files of different extension into a single type then we use another command
                                       ren  *.*  *.docx          

Geel Winky
Image Source - Geek Winky
This was better be explained with the example. After executing the first command, now we have 9 .txt files and 7 .pdf files. We will now change extension of all files to .docx
To accomplish this we need to execute the second command.
Now use the dir command to view the extension of files. You can see that all files extension have been changed to .docx

Geel Winky
Image Source - Geek Winky
Hence using this command you can change the extensions of multiple files in a bulk within few seconds.

Hope you guys like this article and it may be beneficial for you. For latest tips and tricks keep visiting Geek Winky.
If you have any queries related to this article or any opinions or experience about this please share it with us by using the comment section provided below.

Article By : Atul AgrawalSr. Technical Writer & Editor @ Geek Winky
                                          Ping me up at atul@geekwinky.in

                   
How To Change Extension Of All Files In A Folder Using CMD | Geek Winky Reviewed by Atul Agrawal on 11:20 PM Rating: 5
All Rights Reserved by Geek Winky © 2015 - 2017
Theme by Social Ninja

Contact Form

Name

Email *

Message *

Powered by Blogger.