本帖最后由 chinatree 于 2011-11-8 22:13 编辑
- @echo off&setlocal enabledelayedexpansion&title *光棍节快乐*
- mode con cols=23 lines=7
- set a=☆☆☆☆☆☆☆☆☆☆
- set b=★
- set c=
- set d=
- set e=123456789abcde
- echo/
- echo *******(光棍节)*******
- echo.
- echo *光棍节快乐*
- echo\
- :b
- for /l %%a in (0,1,9) do (
- set /a f=%random%%%14+1
- set/p=!a:~%%a,1!<nul&set/p=%b%<nul
- ping -n 1 127.1>nul
- color 0!e:~%f%,1!
- set/p=%c%<nul
- if %%a equ 9 (set/p=%d%<nul&for /l %%a in (9,-1,1) do (set/p=!a:~-%%a!!<nul&set/p=%b%<nul&ping -n 1 127.1>nul&set/p=%d%<nul))
- )
- goto b
复制代码
|