『楼 主』:
运用退格鍵制作小动画示例:
@echo off&color 1f&mode con cols=45 lines=5&title 黑白小动画
set a=○&set b=●
echo.&echo this is made by cn-dos:zw19750516
echo.
:1
set /a n+=1
if %n% equ 3 set n=0&goto 2
for /l %%i in (1,1,20) do set /p=%b%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
for /l %%i in (1,1,20) do set /p=%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
goto 1
:2
set /a n+=1
if %n% equ 3 set n=0&goto 3
for /l %%i in (1,1,10) do set /p=%b%%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
for /l %%i in (1,1,20) do set /p=%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
goto 2
:3
set /a n+=1
if %n% equ 3 set n=0&goto 4
for /l %%i in (1,1,10) do set /p=%b%%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
for /l %%i in (1,1,10) do set /p=%a%%b%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
goto 3
:4
for /l %%i in (1,1,10) do set /p=%b%<nul&ping /n 127.1>nul
for /l %%i in (1,1,10) do set /p=%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
for /l %%i in (1,1,10) do set /p=%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,10) do set /p=%b%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
for /l %%i in (1,1,20) do set /p=%b%<nul&ping /n 127.1>nul
for /l %%i in (1,1,20) do set /p=<nul
for /l %%i in (1,1,10) do set /p=%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
for /l %%i in (1,1,20) do set /p=%a%<nul&ping /n 127.1>nul
for /l %%i in (1,1,20) do set /p=<nul
for /l %%i in (1,1,10) do set /p=%b%<nul&ping /n 127.1>nul
for /l %%i in (1,1,40) do set /p=<nul
goto 1
|