I want to remove a particular extension from all the files

S

Sanchit

In certain folder of mine.... All the files and folder have
extension .bd.ren . Thus if it is an image file its extesnion is
jpg.bd.ren

Please tell me how can I remove .bd.ren extension fromname of all
files and folder

Thanks
Sanchit
 
B

bojimbo26one

In certain folder of mine.... All the files and folder have
extension .bd.ren . Thus if it is an image file its extesnion is
jpg.bd.ren

Please tell me how can I remove .bd.ren extension fromname of all
files and folder

Thanks
Sanchit

Bit Defender is playing with your system .
 
D

devil_himself

In certain folder of mine.... All the files and folder have
extension .bd.ren . Thus if it is an image file its extesnion is
jpg.bd.ren

Please tell me how can I remove .bd.ren extension fromname of all
files and folder

Thanks
Sanchit

so if the file names are
k.jpg.bd.ren
k.txt.bd.ren

this batch script will do it

@echo off
pushd "c:\temp"
for /f "tokens=1-4 delims=." %%a in ('dir /b /a-d') do ren "%%a.%%b.%
%c.%%d" "%%a.%%b"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top