- @echo off
- Setlocal enabledelayedexpansion
-
- :: 生成
- for %%a in (a b c) do @md f:\ks\%%a
- for /f "delims=" %%i in ('dir /b/l/ad f:\ks\*') do (
- for %%a in (a b c) do @md f:\ks\%%i\%%a
- )
- :: 更改
-
-
- SET "ph=f:\ks"
- for /f "delims=" %%i in ('dir /b/l/ad %ph%\*') do (
- call :label_for "%%i"
- )
-
- pause&exit
-
- :label_FOR
- set/a n=0
- set/a c=0
- for /f %%a in ('dir /b/l/ad "%ph%\%~1"') do (
- set/a c+=1
- for %%i in ("attack" "walk" "stand") do (
- set/a n+=1
- if !n! equ !c! @REN "%ph%\%~1\%%a" "%~1_%%~i"
- )
- set/a n=0
- )
- goto :eof
复制代码
|