The Batch file below renames the files to the folder names, removing the page
part:
@echo off
setlocal EnableDelayedExpansion
cd \book
for /D %%a in (*) do (
set folder=%%a
ren "%%a\Image\image 2.jpg" "!folder:page=!.jpg"
)
The Batch file below renames the files to a sequential two-digits number, disregarding the folder names:
@echo off
setlocal EnableDelayedExpansion
cd \book
set number=100
for /D %%a in (*) do (
set /A number+=1
ren "%%a\Image\image 2.jpg" "!number:~1!.jpg"
)
If you want the numbers have just one digit, change the number assignment by this one: set number=10
.