将以下文件保存为BAT格式,然后将需演示的文件拖入即可(缺陷:不能处理文本中的等号)
@echo off&setlocal EnableDelayedExpansion&mode con cols=110 lines=40
color f0&title 公孙轩辕制作.QQ:327828994
set "j=%~1"
if not defined j echo 请将需要演示的文件拖入!&pause&exit
for /f "tokens=*" %%i in ("!j!") do (set "lj=%%~dpi"&set "nx=%%~nxi")
cd /d !lj!
for /f "tokens=*" %%i in (!nx!) do (set ",=%%i"&call :pdgs
for /l %%a in (0,1,!wbgs!) do (call set/p "{=!,:~%%a,1!"<nul&for /l %%d in (1,1,200) do ver>nul)
echo.&echo/)
echo 演示完毕,请按任意键继续&pause>nul
:pdgs
set wbgs=0
:xyh
if "!,:~%wbgs%,1!"=="" goto :eof
set /a wbgs+=1
goto :xyh