Created
June 21, 2024 04:58
-
-
Save garvit-exe/bb2023933e802a175ac28a4e8edb1196 to your computer and use it in GitHub Desktop.
Windows: Rename all files in a folder from *.* to *.jpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
REM Change this path to the directory where your files are located | |
set target_path=C:\path\to\your\directory | |
cd /d "%target_path%" | |
for %%f in (*.*) do ( | |
set "filename=%%~nf" | |
ren "%%f" "!filename!.jpeg" | |
) | |
echo All files have been renamed to .jpeg | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment