中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 05:55
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Colorful dynamic display
Printable Version  1,866 / 13
Floor1 scriptor Posted 2006-12-24 05:42
银牌会员 Posts 555 Credits 1,187

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 ]
Floor2 namejm Posted 2006-12-24 05:45
荣誉版主 Posts 1,737 Credits 5,226 From 成都
It is not possible to do it only through pure batch processing, and third-party software needs to be relied on.
Floor3 9527 Posted 2006-12-24 05:45
银牌会员 Posts 438 Credits 1,185 From 北京
Or let Brother redtek help you make one with DEBUG
Floor4 scriptor Posted 2006-12-24 05:47
银牌会员 Posts 555 Credits 1,187
It seems that I need to give myself a slap.
Floor5 lxmxn Posted 2006-12-24 08:24
版主 Posts 4,938 Credits 11,386

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

  Code:




Attachments
colorx.rar (17.53 KiB)
colorx_.jpg (19.97 KiB)
Floor6 zh159 Posted 2006-12-24 08:34
金牌会员 Posts 1,467 Credits 3,687
The ColorX.exe that can support Chinese display is quite good, I'm bookmarking it.
Floor7 hake Posted 2006-12-24 08:51
初级用户 Posts 43 Credits 103
Which expert can give me a detailed introduction to the meaning of the statements in the source code?
Floor8 lxmxn Posted 2006-12-24 08:53
版主 Posts 4,938 Credits 11,386

  Source code? Where's the code?
Floor9 hake Posted 2006-12-24 09:02
初级用户 Posts 43 Credits 103
For the user on the 5th floor, if I remember correctly, that post is yours
Floor10 lxmxn Posted 2006-12-24 10:08
版主 Posts 4,938 Credits 11,386

  Take a look at the for /? help more.
Floor11 scriptor Posted 2006-12-24 11:47
银牌会员 Posts 555 Credits 1,187
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:
Floor12 scriptor Posted 2006-12-24 11:49
银牌会员 Posts 555 Credits 1,187
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
Floor13 lxmxn Posted 2006-12-24 12:08
版主 Posts 4,938 Credits 11,386

  Using the built-in one, probably only debug.
Floor14 voiL Posted 2006-12-25 00:57
中级用户 Posts 189 Credits 384
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 ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023