批量文件前面加序号

建立bat文件,内容:

@echo off
setlocal enabledelayedexpansion
set "folder=文件清单"
set /a count=1
for %%f in ("%folder%\*") do (
ren "%%~ff" !count!_%%~nf.pdf
set /a count+=1
)
endlocal

posted @ 2024-09-05 13:34  滑溜溜的小热浪  阅读(6)  评论(0编辑  收藏  举报