China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-20 14:00
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Recommendation][Challenge Idea] Use a script to simulate the digital rain from The Matrix DigestI View 27,145 Replies 67
Floor 46 Posted 2006-11-16 22:23
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
It really doesn't look like rain, and the one upstairs doesn't either. I can't think of any way to have the feeling of rain. Having one more CPU is 100%, but why exactly? I think I should start another thread to discuss the execution efficiency of BAT scripts, separating the situations under pure DOS and CMD, and discussing each common statement.
:o
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 47 Posted 2006-11-16 22:25
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
O={]:::::>>Helpless, why haven't I seen anyone these days??? Where are the research results???
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 48 Posted 2006-11-17 01:56 ·  IANA 局域网IP(Private-Use)
中级用户
★★
蝴蝶之吻
Credits 430
Posts 177
Joined 2006-09-20 12:00
19-year member
UID 63170
From 广东深圳
Status Offline
Re 45F:

But after testing, there is a small problem. When you directly click the XX in the upper right corner to close, it may cause a restart.

It won't restart.
Floor 49 Posted 2006-11-17 02:51 ·  中国 浙江 温州 电信
初级用户
★★
Credits 154
Posts 67
Joined 2006-10-31 00:50
19-year member
UID 68933
Gender Male
Status Offline
I feel helpless that this code is relatively complete. It's just that the speed can't keep up, and there are no other major problems.

**********************************************************



  1. @echo off

  2. setlocal ENABLEDELAYEDEXPANSION

  3. for /l %%i in (1,1,80) do (

  4. set Down%%i=0

  5. )



  6. for /l %%i in (0) do (

  7. set line=

  8. for /l %%j in (1,1,80) do (

  9. set /a Down%%j-=1

  10. call set x=!down%%j!

  11. if !x! LSS 0 (

  12. set /a Arrow%%j=!random!%%6

  13. set /a Down%%j=!random!%%15+10

  14. )

  15. call set x=!Arrow%%j!

  16. if "!x!" == "1" (

  17. set line=!line!1

  18. ) else (set "line=!line! ")

  19. )

  20. call set /p=!line!<nul

  21. )
Han He posted on: 2006-11-16 13:54
Floor 50 Posted 2006-11-17 09:37 ·  中国 安徽 淮南 电信
初级用户
Credits 20
Posts 9
Joined 2006-10-16 07:42
19-year member
UID 65941
Gender Male
Status Offline
Little brother has been learning batch processing for not long, and doesn't know how to use complex commands, so he did it the clumsy way. The code is as follows. To see it maximized, and you need to keep your eyes far away from the screen.
It has to do with human vision, only when there are this many characters does it have an effect.
@echo off
color 02
:word
echo s k f j o as/ d k;/f a s ll/ d k f mj . l s. f k la d f k j/;/ a d k f j/ sd f k as l ff ff f f gf f f . f d f f f e f

f ;s k k a j d f i j s d .; '







































Last edited by xiaochaihu on 2006-11-18 at 06:55 AM ]
Floor 51 Posted 2006-11-17 10:03 ·  中国 安徽 淮南 电信
初级用户
Credits 20
Posts 9
Joined 2006-10-16 07:42
19-year member
UID 65941
Gender Male
Status Offline
I took another look. Copying directly from here doesn't work. Maybe carriage returns are added automatically when posting.
Floor 52 Posted 2006-11-18 00:09
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
Is this your code?



  1. @echo off
  2. color 02
  3. :word
  4. echo s k f j o as/ d k;/f a s ll/ d k f mj . l s. f k la d f k j/;/ a d k f j/ sd f k as l ff ff f f gf f f . f d f f f e f f ;s k k a j d f i j s d .; '
    echo a s d f j s o e f s l d k n m s l d,f m m m m b m c m . m r m m x s s s d . a s d o f i u ;e e / e e f k d n s u d t 7 e w d f s l d 'p o am=d mm d 9 u ldm a8 d f s dkfma s d fa ea' ed . fam asdf n 9 8 a sdf as df as d uf ad fl as dfas uyd fa df .a / s d f a sd fa
    echo k o q o z o o i h h f e n m m x m m e m ' f u c u s u; m u y u t u u r . r r r o o s ; l a s d u y e d d b b d d b s s y s o9
    echo k d i i k o i h h i h j h . i s a d s d j a s i d f s d a i s d 8 f s j d s k d i u f h s d f j k k d j f s d f . d j f i d u f .fc l k d 9 c sd ;f s d fa s m d g a 6 rs d t s ad s d f s d
    echo a s d f n a s d k f j a o s i d . i s d f h . i s d f h .a s d s o . s d i f a o s d f s kd o s d f a ; s
    echo a s d k f a s l d k f j l s f j k k d j f s d f
    echo s d f j k k d j f . s d f . d j f i d u f m m x m m e m m f . u cv u s u u m u y u t u f f f e f f s k k a j d f ib s s y s o9
    echo d sdl; dlf ladkj o l diu f ask d fm dk f o di fu n as df df ao s dfa ' sd f 'as d f a
    goto word
hxuan?表ー: 2006-11-17 11:09


A bit messy, but not raining.
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 53 Posted 2006-11-18 06:49 ·  中国 安徽 淮南 电信
初级用户
Credits 20
Posts 9
Joined 2006-10-16 07:42
19-year member
UID 65941
Gender Male
Status Offline
This is just using the fact that people have vision and the screen refreshes quickly, so there is a feeling that the characters are going down, and it's not clear what the characters are. Those characters are what I typed randomly. I'm a newbie. Which big brother can introduce environment variables and the FOR command to me? That is, what folder does the one with % refer to exactly? Little brother is urgently eager to know.

[ Last edited by xiaochaihu on 2006-11-18 at 07:01 AM ]
Floor 54 Posted 2006-11-21 02:16
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
Originally posted by xiaochaihu at 2006-11-17 18:49:
This is just using the fact that people have vision and the screen refreshes quickly, so there is a feeling that some characters are going downward, and it's not clear what the characters are. Those characters are what I typed randomly. I'm a newbie. Can any elder introduce Jie...


FOR you can go and take a look at this post
The Strongest DOS Command – for (It's a good resource for newbies to learn the FOR statement)

As for those %, I remember there is a post, but I can't find it. You can first take a look at this post
Collection of DOS Command Tips
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 55 Posted 2006-11-22 02:09 ·  中国 江西 上饶 电信
初级用户
Credits 29
Posts 15
Joined 2006-11-21 09:35
19-year member
UID 71243
Gender Male
Status Offline
So awesome
Floor 56 Posted 2006-12-05 03:23 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 136
Posts 59
Joined 2006-06-02 16:05
20-year member
UID 56438
Status Offline
Why is there no result when executing?
Floor 57 Posted 2006-12-06 23:48 ·  中国 山东 济南 电信
社区乞丐
★★
此图片另存后死机
Credits -49
Posts 90
Joined 2006-12-02 13:00
19-year member
UID 72412
Gender Male
Status Offline
The brain is about to explode....

After reading the code line by line helplessly for nearly 2 hours...

I didn't even figure out how it outputs....... Cry...........

-------------------------------------

............Looked at it for another two hours.....

Understood.......

How long did it take to write this script helplessly???

It took me more than 4 hours just to read it.......

[ Last edited by tghksj on 2006-12-6 at 11:43 AM ]
Floor 58 Posted 2006-12-07 00:55 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
There's no help for it, the version owner's code... There aren't many people on the forum who can deeply understand it.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 59 Posted 2006-12-24 02:58 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
Then give a thumbs up first.
Powerful!
Floor 60 Posted 2007-02-18 04:06 ·  中国 浙江 台州 路桥区 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
Fun
Forum Jump: