amwfjhh 当前离线
六级士官
TOP
@echo off (for %%a in (*.jpg) do ( set "name=%%~na" setlocal enabledelayedexpansion ren *.pdf "!name:~,10!._pdf" endlocal )) 2>nul ren *._pdf *.pdf
@echo off setlocal enabledelayedexpansion for /f "tokens=*" %%i in ('^<%~s0 find /c /v ""') do set /a lineCount=%%i <%~s0 >test2.txt (for /l %%a in (1 1 !lineCount!) do ( set /p str= echo !str! )) echo 共 !lineCount! 行 fc test2.txt %~s0 pause复制代码