bat吧+ 关注 关注: 帖子:7

  

BAT批量将文件名重新从1开始进行序列编号

  • 枫之精英

    @echo off&setlocal EnableDelayedExpansion

    set a=1

    for /f "delims=" %%i in ('dir /b *.*') do (

    if not "%%~ni"=="%~n0" (

    if !a! LSS 10 (ren "%%i" "0!a!.*") else ren "%%i" "!a!.*"

    set/a a+=1

    )

    )


    1楼  2019/4/23 10:05:13  回复

  发表回复

    发帖