[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. @echo off & title The Matrix & setlocal enabledelayedexpansion
  2. for /f "tokens=2 delims=[]" %%a in ('ver') do for /f "tokens=2 delims=. " %%a in ("%%a") do set /a "FullScreen=-((%%a-6)>>31)"
  3. if "%1"=="" (
  4.   for %%a in (  FontSize:00060004
  5.                 FontFamily:00000030
  6.                 WindowSize:00320050
  7.                 ScreenColors:0000000a
  8.                 CodePage:000001b5
  9.                 ScreenBufferSize:00320050
  10.                 FullScreen:!FullScreen!
  11.   ) do for /f "tokens=1,2 delims=:" %%b in ("%%a") do (
  12.     >nul reg add HKCU\Console\TheMatrix /v %%b /t reg_dword /d 0x%%c /f
  13.   )
  14.   start "TheMatrix" /max "%ComSpec%" /c "%~s0" 1 & exit
  15. ) else ( >nul reg delete HKCU\Console\TheMatrix /f )
  16. REM "Main Title/Trinity Infinity" – 3:54
  17. if exist "%~dp0matrix4.mp3" (
  18.     start /min wmplayer "%~dp0matrix4.mp3"
  19. ) else (
  20.     start /min wmplayer http://pisa.ucsd.edu/cse125/2001/cse190g1/matrix4.mp3
  21. )
  22. set "Matrix="
  23. set /a "wid=80,hei=50,iMax=wid*hei, sumOfStream=wid*1/2"
  24. for /l %%i in (1 1 !iMax!) do set "Matrix= !Matrix!"
  25. set "bss=!Matrix: =!"
  26. set "dic=*_-+|<>'`:.1麴9痫?ō83佧?70?6??
  27. set "dicLen=42"
  28. for /l %%# in (1 1 !sumOfStream!) do set "s%%#=0"
  29. for /l %%* in (0 0 0) do (
  30.   for /l %%# in (1 1 !sumOfStream!) do (
  31.     if !s%%#! leq 1 (
  32.       set /a "h%%#=!random!%%(hei-1)+2,p0%%#=!random!%%(wid*(hei+1-h%%#))+1,l%%#=!random! %% h%%# + 1,s%%#=l%%#+h%%#,h%%#+=1,pg%%#=p0%%#,pc%%#=p0%%#"
  33.     )
  34.     set /a "s%%#-=1,l%%#-=1,h%%#-=1,old=(l%%#-1)>>31,grow=-h%%#>>31, old0=-^!l%%#,pc%%#=(old0&p0%%#)|(~old0&pc%%#)"
  35.     if !old! neq 0 (set "chrc= ") else set "chrc="
  36.     if !grow! neq 0 (
  37.       set /a "r=!random! %% dicLen"
  38.       for %%r in (!r!) do set "chrg=!dic:~%%r,1!"
  39.     ) else set "chrg="
  40.     for %%i in (g c) do (
  41.       if defined chr%%i (
  42.         set /a "lL=p%%i%%#-1, lR=iMax-p%%i%%#, r=!random! %% dicLen"
  43.         for /f "tokens=1-3" %%a in ("!lL! !p%%i%%#! !lR!") do (set "Matrix=!Matrix:~0,%%a!!chr%%i!!Matrix:~%%b,%%c!")
  44.         set /a "p%%i%%#+=wid"
  45.       )
  46.     )
  47.   )
  48.   cls & <nul set /p "=!Matrix:~0,-1!"
  49. )
  50. exit
复制代码

TOP

返回列表