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-22 04:25
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Colorful dynamic display View 1,795 Replies 13
Original Poster Posted 2006-12-24 05:42 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline

Throwing out a brick to attract jade

:(toy.bat

@echo off
for /l %%a in (2,2,9) do (
for /l %%b in (9,-2,1) do (
echo %%a%%b
color %%a%%b
ping -n 1 127.1>nul
)
)

Who can help modify it so that the effect is
In the same window

One line shows red
Then the next line shows blue
Then the next line shows green
And so on....

[ Last edited by namejm on 2006-12-23 at 05:05 PM ]
Floor 2 Posted 2006-12-24 05:45 ·  中国 广东 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
It is not possible to do it only through pure batch processing, and third-party software needs to be relied on.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 3 Posted 2006-12-24 05:45 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
Or let Brother redtek help you make one with DEBUG
我今后在论坛的目标就是做个超级坏人!!!
Floor 4 Posted 2006-12-24 05:47 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
It seems that I need to give myself a slap.
Floor 5 Posted 2006-12-24 08:24 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  Upload an enhanced tool for the Color command, ColorX.exe. The demonstration code is given below.

  Code:

@echo off
for /l %%i in (1,1,9) do (
colorx -c %%i5
echo www.cn-dos.net/forum
)
pause



Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
zh159 +6 2006-12-24 08:34
Attachments
colorx.rar (17.53 KiB, Credits to download 1 pts, Downloads: 81)
colorx_.jpg
Floor 6 Posted 2006-12-24 08:34 ·  中国 广西 南宁 联通
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
The ColorX.exe that can support Chinese display is quite good, I'm bookmarking it.
Floor 7 Posted 2006-12-24 08:51 ·  中国 江西 九江 电信
初级用户
Credits 103
Posts 43
Joined 2006-12-22 23:30
19-year member
UID 74302
Gender Male
Status Offline
Which expert can give me a detailed introduction to the meaning of the statements in the source code?
Floor 8 Posted 2006-12-24 08:53 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  Source code? Where's the code?
Floor 9 Posted 2006-12-24 09:02 ·  中国 江西 九江 电信
初级用户
Credits 103
Posts 43
Joined 2006-12-22 23:30
19-year member
UID 74302
Gender Male
Status Offline
For the user on the 5th floor, if I remember correctly, that post is yours
Floor 10 Posted 2006-12-24 10:08 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  Take a look at the for /? help more.
Floor 11 Posted 2006-12-24 11:47 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
Originally posted by lxmxn at 2006-12-23 19:24:

  Upload an enhanced tool for the Color command, ColorX.exe. The following is the demonstration code.

  Code:

@echo off
for /l %%i in (1,1,9) do (
colorx -c %%i5
echo www. ...



I just want to use the tools built into CMD, but still thank you.
Hehe
Floor 12 Posted 2006-12-24 11:49 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
Originally posted by lxmxn at 2006-12-23 21:08:

  Take a look at the for /? help more.



I don't understand it very well. Please give me some advice. How can I use FOR to solve it?

Thank you
Floor 13 Posted 2006-12-24 12:08 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  Using the built-in one, probably only debug.
Floor 14 Posted 2006-12-25 00:57 ·  中国 广东 肇庆 四会市 电信
中级用户
★★
Credits 384
Posts 189
Joined 2005-10-19 13:12
20-year member
UID 43709
Gender Male
Status Offline
Actually, it doesn't matter whether it's external or not. As long as it works well, it's okay.

colorx is very easy to use, it's not big in size. And it supports Chinese.

Before, I found one, but it didn't support Chinese. I used it for a few days and then put it aside.

Adding the program that can write the program to the P processor before makes it very perfect.

[ Last edited by voiL on 2006-12-25 at 12:58 AM ]
Forum Jump: