Batch
Public
Rename All JPG Files in a Folder
A Windows CMD loop that renames all JPG files in the current folder with a numbered prefix.
#cmd
#windows
#rename
#file-system
Batch
@echo off
setlocal enabledelayedexpansion
set count=1
for %%F in (*.jpg) do (
ren "%%F" "image-!count!.jpg"
set /a count+=1
)
echo Done.
pause
Notes
Run this in a test folder first. Rename operations are difficult to undo.