标题: 清风大哥的花俏输出经典批处理 [打印本页]
作者: 516526966 时间: 2008-8-9 13:31 标题: 清风大哥的花俏输出经典批处理
带音乐的输出,并有不同的输出模式。-
- @echo off
- setlocal enabledelayedexpansion
- title 作者 清风 输出内容 WWW.VERYBAT.CN
- set c1=
- set c2=
- set c3=
- set c4=
- set c5=
- set c6=
- set c7=
- color 0a
- if exist 2 del /a 2
- tasklist | find /i "wmplayer.exe" && taskkill /f /im wmplayer.exe && cls
- for %%t in (c d y 09) do (
- for /l %%a in (1 1 3000) do (echo.>nul)
- )
- for /l %%a in (1 1 50) do (
- set /a j1=%%a*2-1,j2=%%a*2
- cls && echo !j1!%%
- cls && echo !j2!%%
- set a=!a!^>&& echo !a!
- if %%a==1 set s=start /min "" "!ProgramFiles!\Windows Media Player\wmplayer.exe"
- if %%a==2 set u="http://www.bgphoto.cn/2006711716022613.wma"
- if %%a==3 !s! !u!
- for /l %%a in (1 1 300) do (echo.>nul)
- set jd2=!jd2!^<
- )
- set /a j1=0,j2=0
- for /l %%a in (50 -1 1) do (
- set /a j2=%%a*2,j1=%%a*2-1
- cls && echo !j2!%%
- cls && echo !j1!%%
- echo !jd2:~0,%%a!
- for /l %%a in (1 1 300) do (echo.>nul)
- )
- cls
- if not exist wind.exit cd.>wind.exit
- mode con cols=122 lines=25
- for /l %%t in (1 1 9999) do echo.>nul
- set h1=本程序将无限循环运行 如需退出 请删除本目录下 wind.exit
- set h2=那么 待当前循环结束后 批处理会自动退出
- set h3=同时会删除由此产生的临时文件及终止wmplayer播放器
- set h4=建议在运行时 不要强行关闭CMD窗口
- set b=./-\
- set t=for /l %%a in (1 1 999) do echo.^>nul
- for /l %%a in (0 1 32) do (
- set /p=!h1:~%%a,1!<nul
- set /a windy=0
- for %%b in (0f 0b 0c 0e) do (
- set /a windx=0,windy+=1
- for %%c in (0 1 2 3) do (
- set /a windx+=1
- if !windx!==!windy! (
- color %%b
- set /p=!b:~%%c,1!<nul
- set /p=<nul
- %t%
- ))))
- set /p= <nul
- color 0f
- for %%n in (09 09) do echo.
- for /l %%a in (20 -1 0) do (
- cls && echo %h1% && echo.
- for /l %%n in (1 1%%a) do set /p= <nul
- set /p=!h2:~%%a,20!<nul
- for /l %%a in (1 1 1199) do echo.>nul
- )
- for %%w in (清 风 09) do (
- for /l %%t in (1 1 9999) do echo.>nul
- )
- color 0a
- for /l %%a in (21 -1 4) do (
- cls
- for /l %%n in (%%a -1 1) do echo.
- echo !h3! && echo. && echo !h4!
- for /l %%a in (1 1 399) do echo.>nul
- )
- cls && echo !h1! && echo. && echo !h2!
- echo.
- echo !h3! && echo. && echo !h4!
- for /l %%a in (1 1 20099) do echo.>nul
- for /l %%y in (5 -1 1) do (
- cls
- for /l %%a in (1 1 999) do echo.>nul
- echo !h1! && echo. && echo !h2!
- echo.
- echo !h3! && echo. && echo !h4!
- echo.
- echo %%y
- for /l %%a in (1 1 3999) do echo.>nul
- )
- for %%w in (清 风 09) do (
- for /l %%t in (1 1 9999) do echo.>nul
- )
- for /l %%a in (1 1 10000) do (echo.>nul)
- :wind
- mode con cols=122 lines=25
- if not exist wind.exit (
- del /a 2
- taskkill /f /im wmplayer.exe
- exit
- )
- color 0b
- cls
- echo. && echo !c1!
- for /l %%t in (1 1 900) do (cd.>nul)
- for /l %%n in (2 1 7) do (
- cls
- for /l %%m in (1 1 %%n) do (echo.)
- for /l %%x in (1 1 %%n) do (
- echo !c%%x!
- )
- for /l %%t in (1 1 900) do (cd.>nul)
- )
- for %%m in (c d y 09) do (
- for /l %%c in (1 1 3600) do (echo %%c>nul)
- )
- if not exist 2 (
- (
- for /l %%x in (1 1 3) do (
- if %%x equ 1 (
- for /l %%a in (1 1 7) do (
- echo !c%%a:~1,34!
- )
- )
- if %%x equ 2 (
- for /l %%b in (1 1 7) do (
- for /l %%e in (1 1 33) do (set /p= <nul)
- echo !c%%b:~35,69!
- )
- )
- if %%x equ 3 (
- for /l %%c in (1 1 7) do (
- for /l %%E in (1 1 101) do (set /p= <nul)
- echo !c%%c:~104,17!
- )
- )
- )
- )>2 && attrib 2 +h
- set /a a=0
- for /f "delims=" %%a in (2) do (
- set /a a+=1
- set d!a!=%%a
- )
- )
- cls
- color 4a
- for %%a in (09 09) do (echo.)
- for /l %%a in (1 1 21) do (
- echo !d%%a!
- for /l %%t in (1 1 200) do (echo.>nul)
- )
- for %%m in (c d y 09) do (
- for /l %%c in (1 1 3600) do (echo %%c>nul)
- )
- color 9f
- for /l %%a in (21 -1 1) do (
- cls
- set pwa=%%a-1
- for /l %%k in (1 1 !pwa!) do (echo.)
- for /l %%b in (%%a 1 21) do (echo !d%%b!)
- for /l %%t in (1 1 150) do (echo.>nul)
- )
- for %%l in (09 c d y) do (
- for /l %%a in (1 1 3600) do (echo.>nul)
- )
- color ac
- set /a n1=11,m1=12,m2=10
- for /l %%z in (1 1 11) do (
- cls
- for %%a in (09 09) do (echo.)
- set /a n1+=-1,n2+=-1,m1+=-1,m2+=1
- for /l %%a in (1 1 !n1!) do (echo.)
- for /l %%b in (!m1! 1 !m2!) do (echo !d%%b!)
- for /l %%c in (1 1 !n1!) do (echo.)
- for /l %%t in (1 1 280) do (echo.>nul)
- )
- for %%i in (c d 09 y) do (
- for /l %%i in (1 1 3600) do (echo.>nul)
- )
- color 07
- for /l %%t in (1 1 500) do (echo.>nul)
- set /a m1=0,m2=8,n=7
- for %%z in (c d y) do (
- cls
- for /l %%a in (1 1 7) do (echo.)
- set /a m1+=1,m2+=-1,n+=-2
- for /l %%a in (1 1 !m1!) do (echo !c%%a!)
- if not !n! equ 1 (
- for /l %%b in (1 1 !n!) do (echo.)
- ) else echo !c4!
- for /l %%c in (!m2! 1 7) do (echo !c%%c!)
- for /l %%t in (1 1 2500) do (echo.>nul)
- )
- for %%t in (c 清风 d y) do (
- for /l %%d in (1 1 3600) do (echo o>nul)
- )
- color 09
- set /a m1=0,m2=22,n=21
- for /l %%z in (1 1 10) do (
- cls
- for %%z in (0 9) do (echo.)
- set /a m1+=1,m2+=-1,n+=-2
- for /l %%a in (1 1 !m1!) do (echo !d%%a!)
- if not !n! equ 1 (
- for /l %%b in (1 1 !n!) do (echo.)
- ) else echo !d11!
- for /l %%c in (!m2! 1 21) do (echo !d%%c!)
- for /l %%t in (1 1 350) do (echo.>nul)
- )
- for /l %%d in (1 1 3) do (
- for /l %%o in (1 1 3600) do (echo o>nul)
- )
- color 9f
- set /a k+=1
- if !k!==1 (set /a w=1,x=400,y=6000) else (set /a w=2,x=100,y=3000,k=0)
- for /l %%a in (120 -20 0) do (
- cls
- for /l %%i in (1 1 7) do (echo.)
- for /l %%m in (1 1 7) do (
- for /l %%n in (1 1 %%a) do (set /p= <nul)
- echo !c%%m:~%%a,121!
- )
- for /l %%t in (1 1 3000) do echo.>nul
- )
- for %%p in (清 风 09 cdy) do (
- for /l %%n in (1 1 3600) do (echo x>nul)
- )
- for %%a in (清 风 0 9) do (
- cls
- for /l %%a in (1 1 8) do (
- if %%a leq 7 (
- echo !c%%a!
- for /l %%t in (1 1 150) do (echo.>nul)
- ) else (
- for /l %%b in (1 1 17) do (
- cls
- for /l %%n in (1 1 %%b) do (echo.)
- for /l %%c in (1 1 7) do (echo !c%%c!)
- for /l %%t in (1 1 150) do (echo.>nul)
- )
- )
- )
- set /a n=17,m=7
- for /l %%a in (1 1 7) do (
- set /a n+=1,m+=-1
- cls
- for /l %%b in (1 1 !n!) do (echo.)
- for /l %%c in (1 1 !m!) do (echo !c%%c!)
- for /l %%t in (1 1 150) do (echo.>nul)
- )
- )
- for %%u in (c d y 清风) do (
- for /l %%t in (1 1 3600) do (echo.>nul)
- )
- for /l %%a in (1 1 121) do (
- cls
- for /l %%a in (1 1 6) do (echo.)
- for /l %%b in (1 1 7) do (
- echo !c%%b:~1,%%a!
- )
- for /l %%t in (1 1 180) do (echo.>nul)
- )
- for /l %%a in (1 1 7200) do (echo.>nul)
- for /l %%a in (120 -1 1) do (
- cls
- for /l %%a in (1 1 7) do (echo.)
- for /l %%b in (1 1 7) do (
- echo !c%%b:~%%a,121!
- )
- for /l %%t in (1 1 80) do (echo.>nul)
- )
- for %%t in (清风 c d y) do (
- for /l %%a in (1 1 3600) do (echo.>nul)
- )
- cls
- for /l %%a in (1 1 10) do (
- if %%a leq 3 (
- echo !c%%a!
- for /l %%t in (1 1 300) do (echo.>nul)
- )
- if %%a geq 4 if %%a leq 10 (
- cls
- for /l %%n in (4 1 %%a) do (echo.)
- for /l %%m in (1 1 3) do (echo !c%%m!)
- for /l %%t in (1 1 300) do (echo.>nul)
- )
- )
- set /a n=13
- for /l %%a in (7 -1 5) do (
- cls && set /a n+=-1
- for /l %%h in (1 1 7) do (echo.)
- for /l %%i in (1 1 3) do (echo !c%%i!)
- for /l %%b in (1 1 !n!) do (echo.)
- for /l %%c in (%%a 1 7) do (echo !c%%c!)
- for /l %%t in (1 1 300) do (echo.>nul)
- )
- for /l %%a in (10 -1 1) do (
- cls
- for /l %%h in (1 1 7) do (echo.)
- for /l %%i in (1 1 3) do (echo !c%%i!)
- for /l %%n in (1 1 %%a) do (echo.)
- for /l %%c in (5 1 7) do (echo !c%%c!)
- for /l %%t in (1 1 300) do (echo.>nul)
- )
- for /l %%t in (1 1 500) do (echo.>nul)
- for /l %%k in (1 1 !w!) do (
- for /l %%i in (121 -1 0) do (
- cls
- for /l %%h in (1 1 7) do (echo.)
- for /l %%i in (1 1 3) do (echo !c%%i!)
- set /p=!c4:~%%i,121!<nul
- echo.
- for /l %%u in (5 1 7) do (echo !c%%u!)
- for /l %%t in (1 1 !x!) do (echo.>nul)
- )
- for /l %%o in (1 1 !y!) do (echo.>nul)
- )
- for /l %%a in (121 -1 1) do (
- cls
- for /l %%a in (1 1 7) do (echo.)
- for /l %%b in (1 1 7) do (
- echo !c%%b:~1,%%a!
- )
- for /l %%t in (1 1 100) do (echo.>nul)
- )
- color 07
- mode con cols=121 lines=25
- for /l %%a in (0 1 121) do (
- cls
- for /l %%n in (1 1 3) do (
- echo.
- for /l %%b in (1 1 7) do (
- set /p wind=!c%%b:~0,%%a!<nul
- )
- )
- for /l %%t in (1 1 240) do (echo.>nul)
- )
- for %%t in (c d y) do (
- for /l %%a in (1 1 3600) do (echo.>nul)
- )
- for %%a in (清风09) do (
- for %%c in (1 2 3 4 5 6 7 8 9 a b c d e f) do (
- color 0%%c
- for /l %%t in (1 1 800) do (echo.>nul)
- )
- )
- goto wind
-
复制代码
[ 本帖最后由 Batcher 于 2009-5-16 14:10 编辑 ]
作者: pusofalse 时间: 2008-8-9 16:02
经典。
作者: batman 时间: 2008-8-9 16:18
我觉得是体力活。。。
很多代码完全可以用call省下来。。。
作者: Batcher 时间: 2008-8-10 01:04
为什么不直接贴代码呢?
我的电脑上不允许安装WinRAR
5555555~~~
作者: xouou_53320 时间: 2008-8-14 21:34
实在是厉害 呵呵 学习了
作者: 小勇12 时间: 2008-8-14 22:22
好厉害呀!!!!!!!!!!
作者: 84918930 时间: 2008-8-17 12:24
有什么用?LZ说下作用哈。。。
作者: 523066680 时间: 2008-8-19 09:52
原帖由 batman 于 2008-8-9 16:18 发表
我觉得是体力活。。。
很多代码完全可以用call省下来。。。
我也觉得挺体力的……
作者: AK47 时间: 2008-9-16 14:09
牛人就是不一样!
作者: weiyepin 时间: 2008-9-23 15:55
哇哦哦,经典中的经典啊
作者: youyun 时间: 2008-10-12 00:42
是做什么用的?还有音乐,哇
作者: 随风 时间: 2008-10-12 01:12
转载代码请注明出处!!!
作者: a794685135 时间: 2008-10-12 10:41
有种很无语, 想崩溃的感觉 ,,,,
作者: shenmeshibat 时间: 2008-10-12 11:02 标题: 崩溃,很浪费时间
这东西拿来干嘛的?
作者: youxi01 时间: 2008-10-12 12:37
只是将前辈们讨论出来的 动画效果 凑合在了一起而已...
作者: 516526966 时间: 2008-10-21 13:32
原帖由 随风 于 2008-10-12 01:12 发表
转载代码请注明出处!!!
是啊,但是当时的非常批处理的论坛停掉了。抱歉。
作者: chxws 时间: 2008-10-24 15:39
太强悍了 批处理
作者: Keenkaida 时间: 2009-1-17 20:08
虽然有些还是不怎么懂 但是还是收益匪浅
作者: xlw542350190 时间: 2009-1-18 22:26
是很花俏,欠实用^^^不过有这种功力,应该有很多好东西吧,分享一下吧^^^^^^^
作者: jason588 时间: 2009-6-29 01:09
实在是厉害 呵呵 学习了
作者: tario 时间: 2009-6-29 12:16
确实很花俏, 如title所言, 一些小技巧可以"拿来"用的, 以上.
作者: huziivy 时间: 2010-1-26 14:16
光好看,而且不知所云
作者: pk999998 时间: 2010-3-7 11:43
好像蛮有意思的哦
作者: cao 时间: 2010-3-17 17:04
我说呢,看下面的回帖真的是吓我一小跳,靠,批处理还能放音乐?!!测试了一下才发现时这么回事。。。。
作者: c64kkd 时间: 2010-11-9 20:09
靠,批处理还能放音乐?!!测试了一下才发现时这么回事。。。。
作者: acaigg 时间: 2011-1-20 18:54
路过。顶一下。!!!
作者: Realjack 时间: 2011-2-19 03:14
很精彩 支持了谢谢发布
作者: superbat 时间: 2011-3-5 16:32
吓到,虽然界面不错。
作者: y8160000 时间: 2011-6-8 14:23
这个批处理可以说得上是个经典,这种都可以写出来
作者: wrz99 时间: 2011-7-26 13:49
有什么用??
欢迎光临 批处理之家 (http://bathome.net./) |
Powered by Discuz! 7.2 |