找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 15010|回复: 4

[效果]模仿电影渐显名单

[复制链接]
发表于 2010-4-9 10:15:51 | 显示全部楼层 |阅读模式
名单先后纯粹当时意念,没有特殊含义。
此代码 在cn-dos发过
  1. if wscript.arguments.count = 0 then
  2.   createobject("wscript.shell").run _
  3.   "cmd /c title Hi~ cn-dos &mode con cols=50 lines=6 & "&_
  4.   " cscript //nologo " &chr(34) &wscript.scriptname &chr(34) &" isme"
  5.   wscript.quit
  6. end if
  7. :rem Made by if(e_x)ist@cn-dos
  8. set inp=wscript.stdin
  9. set put=wscript.stdout
  10. dim str(6)
  11. str(0)=" W W W . C N - D O S . N E T "
  12. str(1)=" B A T H O M E  "
  13. str(2)=" L x m x n  "
  14. str(3)=" E v e r e s t 7 9 "
  15. str(4)=" N e t B e n T o n "
  16. str(5)=" I F _ E X I S T "
  17. str(6)=" H u a h u a 0919 "

  18. for each strx in str
  19.   call EchoInRnd(replace(space(len(strx))," ","-"),strx)
  20.   call EchoInRnd(strx,strx)
  21.   call EchoInRnd(strx,space(len(strx)))
  22.   put.writeline
  23. next

  24. sub EchoInRnd(stra,strb)
  25. dim x(100)
  26. xlb=len(stra)
  27. xla=xlb-1
  28. for i = 0 to xlb
  29.    x(i) = i
  30. next
  31. ln=stra
  32. for i = xla to 0 step -1
  33.    tn=int(rnd*i)
  34.    ln=left(ln,x(tn)) & mid(strb,x(tn)+1,1) & right(ln,xla-x(tn))
  35.         wscript.sleep 50
  36.    put.write chr(13)
  37.    put.write space((50-xlb)/2) & ln
  38.    x(tn)=x(i)
  39. next
  40. end sub
复制代码
发表于 2010-4-9 17:59:39 | 显示全部楼层
执行不了呢。。。。。
 楼主| 发表于 2010-4-9 18:20:42 | 显示全部楼层

回复 2楼 的帖子

表示无奈……
发表于 2010-4-9 19:15:26 | 显示全部楼层
怎么是在CMD窗口执行?
发表于 2010-12-2 12:30:02 | 显示全部楼层
怎么是在CMD窗口执行?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 05:10 , Processed in 0.023274 second(s), 10 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表