[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

清风大哥的花俏输出经典批处理

带音乐的输出,并有不同的输出模式。
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. title 作者 清风                 输出内容  WWW.VERYBAT.CN
  4. set c1=                                                                      
  5. set c2=                                                                                                   
  6. set c3=                                                                                            
  7. set c4=                                                                               
  8. set c5=                                                                                              
  9. set c6=                                                                                        
  10. set c7=                                                                              
  11. color 0a
  12. if exist 2 del /a 2
  13. tasklist | find /i "wmplayer.exe" && taskkill /f /im wmplayer.exe && cls
  14. for %%t in (c d y 09) do (
  15. for /l %%a in (1 1 3000) do (echo.>nul)
  16. )
  17. for /l %%a in (1 1 50) do (
  18. set /a j1=%%a*2-1,j2=%%a*2
  19. cls && echo !j1!%%
  20. cls && echo !j2!%%
  21. set a=!a!^>&& echo !a!
  22. if %%a==1 set s=start /min "" "!ProgramFiles!\Windows Media Player\wmplayer.exe"
  23. if %%a==2 set u="http://www.bgphoto.cn/2006711716022613.wma"
  24. if %%a==3 !s! !u!
  25. for /l %%a in (1 1 300) do (echo.>nul)
  26. set jd2=!jd2!^<
  27. )
  28. set /a j1=0,j2=0
  29. for /l %%a in (50 -1 1) do (
  30. set /a j2=%%a*2,j1=%%a*2-1
  31. cls && echo !j2!%%
  32. cls && echo !j1!%%
  33. echo !jd2:~0,%%a!
  34. for /l %%a in (1 1 300) do (echo.>nul)
  35. )
  36. cls
  37. if not exist wind.exit cd.>wind.exit
  38. mode con cols=122 lines=25
  39. for /l %%t in (1 1 9999) do echo.>nul
  40. set h1=本程序将无限循环运行 如需退出 请删除本目录下 wind.exit
  41. set h2=那么 待当前循环结束后 批处理会自动退出
  42. set h3=同时会删除由此产生的临时文件及终止wmplayer播放器
  43. set h4=建议在运行时 不要强行关闭CMD窗口
  44. set b=./-\
  45. set t=for /l %%a in (1 1 999) do echo.^>nul
  46. for /l %%a in (0 1 32) do (
  47. set /p=!h1:~%%a,1!<nul
  48. set /a windy=0
  49. for %%b in (0f 0b 0c 0e) do (
  50. set /a windx=0,windy+=1
  51. for %%c in (0 1 2 3) do (
  52. set /a windx+=1
  53. if !windx!==!windy! (
  54. color %%b
  55. set /p=!b:~%%c,1!<nul
  56. set /p=<nul
  57. %t%
  58. ))))
  59. set /p= <nul
  60. color 0f
  61. for %%n in (09 09) do echo.
  62. for /l %%a in (20 -1 0) do (
  63. cls && echo %h1% && echo.
  64. for /l %%n in (1 1%%a) do set /p= <nul
  65. set /p=!h2:~%%a,20!<nul
  66. for /l %%a in (1 1 1199) do echo.>nul
  67. )
  68. for %%w in (清 风 09) do (
  69. for /l %%t in (1 1 9999) do echo.>nul
  70. )
  71. color 0a
  72. for /l %%a in (21 -1 4) do (
  73. cls
  74. for /l %%n in (%%a -1 1) do echo.
  75. echo !h3! && echo. && echo !h4!
  76. for /l %%a in (1 1 399) do echo.>nul
  77. )
  78. cls && echo !h1! && echo. && echo !h2!
  79. echo.
  80. echo !h3! && echo. && echo !h4!
  81. for /l %%a in (1 1 20099) do echo.>nul
  82. for /l %%y in (5 -1 1) do (
  83. cls
  84. for /l %%a in (1 1 999) do echo.>nul
  85. echo !h1! && echo. && echo !h2!
  86. echo.
  87. echo !h3! && echo. && echo !h4!
  88. echo.
  89. echo %%y
  90. for /l %%a in (1 1 3999) do echo.>nul
  91. )
  92. for %%w in (清 风 09) do (
  93. for /l %%t in (1 1 9999) do echo.>nul
  94. )
  95. for /l %%a in (1 1 10000) do (echo.>nul)
  96. :wind
  97. mode con cols=122 lines=25
  98. if not exist wind.exit (
  99. del /a 2
  100. taskkill /f /im wmplayer.exe
  101. exit
  102. )
  103. color 0b
  104. cls
  105. echo. && echo !c1!
  106. for /l %%t in (1 1 900) do (cd.>nul)
  107. for /l %%n in (2 1 7) do (
  108. cls
  109. for /l %%m in (1 1 %%n) do (echo.)
  110. for /l %%x in (1 1 %%n) do (
  111. echo !c%%x!
  112. )
  113. for /l %%t in (1 1 900) do (cd.>nul)
  114. )
  115. for %%m in (c d y 09) do (
  116. for /l %%c in (1 1 3600) do (echo %%c>nul)
  117. )
  118. if not exist 2 (
  119. (
  120. for /l %%x in (1 1 3) do (
  121. if %%x equ 1 (
  122. for /l %%a in (1 1 7) do (
  123. echo !c%%a:~1,34!
  124. )
  125. )
  126. if %%x equ 2 (
  127. for /l %%b in (1 1 7) do (
  128. for /l %%e in (1 1 33) do (set /p= <nul)
  129. echo !c%%b:~35,69!
  130. )
  131. )
  132. if %%x equ 3 (
  133. for /l %%c in (1 1 7) do (
  134. for /l %%E in (1 1 101) do (set /p= <nul)
  135. echo !c%%c:~104,17!
  136. )
  137. )
  138. )
  139. )>2 && attrib 2 +h
  140. set /a a=0
  141. for /f "delims=" %%a in (2) do (
  142. set /a a+=1
  143. set d!a!=%%a
  144. )
  145. )
  146. cls
  147. color 4a
  148. for %%a in (09 09) do (echo.)
  149. for /l %%a in (1 1 21) do (
  150. echo !d%%a!
  151. for /l %%t in (1 1 200) do (echo.>nul)
  152. )
  153. for %%m in (c d y 09) do (
  154. for /l %%c in (1 1 3600) do (echo %%c>nul)
  155. )
  156. color 9f
  157. for /l %%a in (21 -1 1) do (
  158. cls
  159. set pwa=%%a-1
  160. for /l %%k in (1 1 !pwa!) do (echo.)
  161. for /l %%b in (%%a 1 21) do (echo !d%%b!)
  162. for /l %%t in (1 1 150) do (echo.>nul)
  163. )
  164. for %%l in (09 c d y) do (
  165. for /l %%a in (1 1 3600) do (echo.>nul)
  166. )
  167. color ac
  168. set /a n1=11,m1=12,m2=10
  169. for /l %%z in (1 1 11) do (
  170. cls
  171. for %%a in (09 09) do (echo.)
  172. set /a n1+=-1,n2+=-1,m1+=-1,m2+=1
  173. for /l %%a in (1 1 !n1!) do (echo.)
  174. for /l %%b in (!m1! 1 !m2!) do (echo !d%%b!)
  175. for /l %%c in (1 1 !n1!) do (echo.)
  176. for /l %%t in (1 1 280) do (echo.>nul)
  177. )
  178. for %%i in (c d 09 y) do (
  179. for /l %%i in (1 1 3600) do (echo.>nul)
  180. )
  181. color 07
  182. for /l %%t in (1 1 500) do (echo.>nul)
  183. set /a m1=0,m2=8,n=7
  184. for %%z in (c d y) do (
  185. cls
  186. for /l %%a in (1 1 7) do (echo.)
  187. set /a m1+=1,m2+=-1,n+=-2
  188. for /l %%a in (1 1 !m1!) do (echo !c%%a!)
  189. if not !n! equ 1 (
  190. for /l %%b in (1 1 !n!) do (echo.)
  191. )  else echo !c4!
  192. for /l %%c in (!m2! 1 7) do (echo !c%%c!)
  193. for /l %%t in (1 1 2500) do (echo.>nul)
  194. )
  195. for %%t in (c 清风 d y) do (
  196. for /l %%d in (1 1 3600) do (echo o>nul)
  197. )
  198. color 09
  199. set /a m1=0,m2=22,n=21
  200. for /l %%z in (1 1 10) do (
  201. cls
  202. for %%z in (0 9) do (echo.)
  203. set /a m1+=1,m2+=-1,n+=-2
  204. for /l %%a in (1 1 !m1!) do (echo !d%%a!)
  205. if not !n! equ 1 (
  206. for /l %%b in (1 1 !n!) do (echo.)
  207. )  else echo !d11!
  208. for /l %%c in (!m2! 1 21) do (echo !d%%c!)
  209. for /l %%t in (1 1 350) do (echo.>nul)
  210. )
  211. for /l %%d in (1 1 3) do (
  212. for /l %%o in (1 1 3600) do (echo o>nul)
  213. )
  214. color 9f
  215. set /a k+=1
  216. if !k!==1 (set /a w=1,x=400,y=6000) else (set /a w=2,x=100,y=3000,k=0)
  217. for /l %%a in (120 -20 0) do (
  218. cls
  219. for /l %%i in (1 1 7) do (echo.)
  220. for /l %%m in (1 1 7) do (
  221. for /l %%n in (1 1 %%a) do (set /p= <nul)
  222. echo !c%%m:~%%a,121!
  223. )
  224. for /l %%t in (1 1 3000) do echo.>nul
  225. )
  226. for %%p in (清 风 09 cdy) do (
  227. for /l %%n in (1 1 3600) do (echo x>nul)
  228. )
  229. for %%a in (清 风 0 9) do (
  230. cls
  231. for /l %%a in (1 1 8) do (
  232. if %%a leq 7 (
  233. echo !c%%a!
  234. for /l %%t in (1 1 150) do (echo.>nul)
  235. ) else (
  236. for /l %%b in (1 1 17) do (
  237. cls
  238. for /l %%n in (1 1 %%b) do (echo.)
  239. for /l %%c  in (1 1 7) do (echo !c%%c!)
  240. for /l %%t in (1 1 150) do (echo.>nul)
  241. )
  242. )
  243. )
  244. set /a n=17,m=7
  245. for /l %%a in (1 1 7) do (
  246. set /a n+=1,m+=-1
  247. cls
  248. for /l %%b in (1 1 !n!) do (echo.)
  249. for /l %%c in (1 1 !m!) do (echo !c%%c!)
  250. for /l %%t in (1 1 150) do (echo.>nul)
  251. )
  252. )
  253. for %%u in (c d y 清风) do (
  254. for /l %%t in (1 1 3600) do (echo.>nul)
  255. )
  256. for /l %%a in (1 1 121) do (
  257. cls
  258. for /l %%a in (1 1 6) do (echo.)
  259. for /l %%b in (1 1 7) do (
  260. echo !c%%b:~1,%%a!
  261. )
  262. for /l %%t in (1 1 180) do (echo.>nul)
  263. )
  264. for /l %%a in (1 1 7200) do (echo.>nul)
  265. for /l %%a in (120 -1 1) do (
  266. cls
  267. for /l %%a in (1 1 7) do (echo.)
  268. for /l %%b in (1 1 7) do (
  269. echo !c%%b:~%%a,121!
  270. )
  271. for /l %%t in (1 1 80) do (echo.>nul)
  272. )
  273. for %%t in (清风 c d y) do (
  274. for /l %%a in (1 1 3600) do (echo.>nul)
  275. )
  276. cls
  277. for /l %%a in (1 1 10) do (
  278. if %%a leq 3 (
  279. echo !c%%a!
  280. for /l %%t in (1 1 300) do (echo.>nul)
  281. )
  282. if %%a geq 4 if %%a leq 10 (
  283. cls
  284. for /l %%n in (4 1 %%a) do (echo.)
  285. for /l %%m in (1 1 3) do (echo !c%%m!)
  286. for /l %%t in (1 1 300) do (echo.>nul)
  287. )
  288. )
  289. set /a n=13
  290. for /l %%a in (7 -1 5) do (
  291. cls && set /a n+=-1
  292. for /l %%h in (1 1 7) do (echo.)
  293. for /l %%i in (1 1 3) do (echo !c%%i!)
  294. for /l %%b in (1 1 !n!) do (echo.)
  295. for /l %%c in (%%a 1 7) do (echo !c%%c!)
  296. for /l %%t in (1 1 300) do (echo.>nul)
  297. )
  298. for /l %%a in (10 -1 1) do (
  299. cls
  300. for /l %%h in (1 1 7) do (echo.)
  301. for /l %%i in (1 1 3) do (echo !c%%i!)
  302. for /l %%n in (1 1 %%a) do (echo.)
  303. for /l %%c in (5 1 7) do (echo !c%%c!)
  304. for /l %%t in (1 1 300) do (echo.>nul)
  305. )
  306. for /l %%t in (1 1 500) do (echo.>nul)
  307. for /l %%k in (1 1 !w!) do (
  308. for /l %%i in (121 -1 0) do (
  309. cls
  310. for /l %%h in (1 1 7) do (echo.)
  311. for /l %%i in (1 1 3) do (echo !c%%i!)
  312. set /p=!c4:~%%i,121!<nul
  313. echo.
  314. for /l %%u in (5 1 7) do (echo !c%%u!)
  315. for /l %%t in (1 1 !x!) do (echo.>nul)
  316. )
  317. for /l %%o in (1 1 !y!) do (echo.>nul)
  318. )
  319. for /l %%a in (121 -1 1) do (
  320. cls
  321. for /l %%a in (1 1 7) do (echo.)
  322. for /l %%b in (1 1 7) do (
  323. echo !c%%b:~1,%%a!
  324. )
  325. for /l %%t in (1 1 100) do (echo.>nul)
  326. )
  327. color 07
  328. mode con cols=121 lines=25
  329. for /l %%a in (0 1 121) do (
  330. cls
  331. for /l %%n in (1 1 3) do (
  332. echo.
  333. for /l %%b in (1 1 7) do (
  334. set /p wind=!c%%b:~0,%%a!<nul
  335. )
  336. )
  337. for /l %%t in (1 1 240) do (echo.>nul)
  338. )
  339. for %%t in (c d y) do (
  340. for /l %%a in (1 1 3600) do (echo.>nul)
  341. )
  342. for %%a in (清风09) do (
  343. for %%c in (1 2 3 4 5 6 7 8 9 a b c d e f) do (
  344. color 0%%c
  345. for /l %%t in (1 1 800) do (echo.>nul)
  346. )
  347. )
  348. goto wind
复制代码

[ 本帖最后由 Batcher 于 2009-5-16 14:10 编辑 ]

有什么用??

TOP

这个批处理可以说得上是个经典,这种都可以写出来

TOP

吓到,虽然界面不错。

TOP

很精彩 支持了谢谢发布

TOP

路过。顶一下。!!!

TOP

靠,批处理还能放音乐?!!测试了一下才发现时这么回事。。。。

TOP

我说呢,看下面的回帖真的是吓我一小跳,靠,批处理还能放音乐?!!测试了一下才发现时这么回事。。。。

TOP

好像蛮有意思的哦

TOP

光好看,而且不知所云

TOP

确实很花俏, 如title所言, 一些小技巧可以"拿来"用的, 以上.

TOP

实在是厉害  呵呵 学习了

TOP

是很花俏,欠实用^^^不过有这种功力,应该有很多好东西吧,分享一下吧^^^^^^^

TOP

虽然有些还是不怎么懂 但是还是收益匪浅

TOP

太强悍了  批处理

TOP

返回列表