0

I have a lot of files in a directory named *.mkv.bin e.g.:

American Pie 1.mkv.bin

I want to rename these files using a to delete .bin as follows:

American Pie 1.mkv
Compo
  • 36,585
  • 5
  • 27
  • 39
showkubii
  • 1
  • 1
  • 2
    Possible duplicate of [Batch: Remove file extension](https://stackoverflow.com/questions/3215501/batch-remove-file-extension) – Renat Sep 27 '19 at 12:07

2 Answers2

0
FOR /R "I:\" %%f IN (*.mkv.bin) DO REN "%%f" "%%~nf"

working.

showkubii
  • 1
  • 1
0
@echo off
color 0a
title Stack Overflow Answer

set /p f=File to rename(drive and path):
set /p e=Extension to rename to:
set /p nf=File name to rename to:
echo Renameing...
@ren "%f%" "%e%.%nf%"
cls && echo Done! && pause >nul
exit

add this text a rename.bat file and run it!