下载第三方工具 pin.exe- @echo off
- for /f "delims=" %%i in ('dir /b /ad') do (
- set "name=%%~ni"
- setlocal enabledelayedexpansion
- set "hanzi=!name:~0,1!"
- for /f "tokens=1" %%a in ('echo !hanzi! ^| pin.exe -p -d3" "') do (
- set pinyin=%%a
- )
- ren "%%i" "!pinyin!%%i"
- endlocal
- )
- pause
复制代码
试试行吗 |