[attach]2752[/attach]- @echo off
- title BatHome
- mode con cols=25 lines=4
- SetLocal EnableDelayedExpansion
-
- set "String_Top= > > > > > > > > "
- set "String_Center=bbs.bathome.net"
- set "String_Bottom= < < < < < < < < "
- set "Space= "
- set "Backspace="
- set "End=9"
-
- :: ---------------------- 中间动画 ----------------------
- echo,
- set /p = <nul
-
- for /l %%p in (0 1 14) do (
- set /p =!Space:~%%p!<nul
- set One=!String_Center:~%%p,1!
- for /l %%b in (1 1 !End!) do (
- set /p = !Backspace!!One!<nul
- if !Backspace!== set Backspace=
- ping -n 1 127.1 >nul
- )
- set /a "Var = (Var + 1) %% 2"
- if !Var!==1 (set Backspace=) else set /a End -= 1
- )
-
- :: ---------------------- 上下动画 ----------------------
- for /l %%a in (1 1 1000000) do (
- set String_Top=!String_Top:~-1!!String_Top:~0,-1!
- set String_Bottom=!String_Bottom:~1!!String_Bottom:~0,1!
- echo !String_Top!
- echo !String_Center!
- echo !String_Bottom!
- ping -n 1 127.1 >nul
- cls
- )
复制代码 [ 本帖最后由 z7r3kslwtj5w_px 于 2010-7-21 19:34 编辑 ] |