- @echo on
-
- set alist=A.txt
- set blist=B.txt
-
- for %%a in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
- if exist %%a:\*.* (
- for %%b in (0 1 2 3 4 5 6 7 8 9) do (
- if exist %%a:\song%%b\*.* (
- for /f "tokens=1,2,3,4,5,6* delims=" %%c in (alist.txt) do (
- if exist %%a:\song%%b\%%c.* (
- for /f "tokens=1,2,3,4,5,6* delims=" %%d in (blist.txt) do (
- if exist %%a:\song%%b\%%c.* ren %%a:\song%%b\%%c.* %%d.*
- )
- )
- )
- )
- )
- )
- )
-
- @echo on
-
-
- pause
复制代码 运行批处理后文件名不正常,有按照A.txt---B.txt去改但是有重名文件
求大神帮忙解决,万分感谢 |