
CODE: [Copy to clipboard]@echo off
set a=0
setlocal EnableDelayedExpansion
for %%n in (*.txt) do (
set /A a+=1
if !a! LSS 10 (ren "%%n" "说明0!a!.txt") else ren "%%n" "说明!a!.txt"
)
CODE: [Copy to clipboard]for /l %a in (1,1,50) do ren *.txt %a.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |