标题: for循环来达到霓虹灯一样画面闪的效果
[打印本页]
作者: tomy
时间: 2007-5-29 03:21
标题: for循环来达到霓虹灯一样画面闪的效果
我希望执行一个for循环来达到霓虹灯一样画面闪的效果,代码如下:
@echo off
cls
color 02
echo.
echo.
echo.
echo.
echo PPPPPPPPPPPP PP PPPPPPPPPP PPPPPPPPPP
echo PP PP PP PP PP PP PP PP
echo PP PP PP PP PP PP PP PP
echo PP PP PP PP PP PP
echo PP PP PP PP PP PP
echo PP PP PP PP PP PP
echo PPPPPPPPPPPP PP PP PPPPPPPPPP PPPPPPPPPP
echo PP PPPPPPPPPPPPPP PP PP
echo PP PP PP PP PP
echo PP PP PP PP PP PP PP
echo PP PP PP PP PP PP PP
echo PP PP PP PPPPPPPPPP PPPPPPPPPP
echo.
for /l %%a in (1,1,100000) do (
color 0f
choice /c 1234567890abcdefghijklmnopqrstuvwxyz /t 1 /d z /n 1>nul
if not errorlevel 36 goto end
color 02
choice /c 1234567890abcdefghijklmnopqrstuvwxyz /t 1 /d z /n 1>nul
if not errorlevel 36 goto end )
:end
@ECHO.
pause
希望在想推出的时候,按任意键退出...
我使用了choice.exe,但是有两个不满意的地方:
1.使用了choice.exe,但是choice.exe在XP和WINPE2005中不是自带的.
2.上面代码中按回车和空格没有用.
希望高手指点,能不能用SET代替....
[
Last edited by tomy on 2007-5-31 at 12:04 AM ]