1
2
3
4
5
6
7
8
9
10
11
12
13
@echo off

set a=0

setlocal EnableDelayedExpansion

for /r %%n in (*.txt) do (

set /A a+=1

ren "%%n" "小说!a!.txt"

)