1、修改后缀名
ren *.cs *.txt
ren *.txt *.zip
2、修改文件名称
@echo off
set a=00
setlocal EnableDelayedExpansion
for %%n in (*.txt) do (
set /A a+=1
ren "%%n" "!a!.txt"
)
1、修改后缀名
ren *.cs *.txt
ren *.txt *.zip
2、修改文件名称
@echo off
set a=00
setlocal EnableDelayedExpansion
for %%n in (*.txt) do (
set /A a+=1
ren "%%n" "!a!.txt"
)