本帖最后由 batman 于 2012-12-28 11:02 编辑
- @echo off&setlocal enabledelayedexpansion
- set "max=mp3文件中最大的编号,你懂的。。。"
- for /f "delims=" %%a in (names.txt) do set /a n+=1&set "_!n!=%%a"
- set /a n=0
- for /l %%a in (1,1,%max%) do (
- set /a a=%%a
- if %%a lss 10 set "a=0!a!"
- if exist "marker !a!.mp3" (
- set /a n+=1
- for %%b in (!n!) do ren "marker !a!.mp3" "!_%%b!.mp3"
- )
- )
复制代码
|