|
scriptor
银牌会员
    
积分 1187
发帖 555
注册 2006-12-21
状态 离线
|
『楼 主』:
彩色动态显示
使用 LLM 解释/回答一下
抛砖引玉
:(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
)
)
哪位可以帮忙改一下,让他的效果是
在同一个窗口中
一行显示红色
那么下一行显示兰色
再下一行显示绿色
等等....
Last edited by namejm on 2006-12-23 at 05:05 PM ]
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 ]
|
|
2006-12-24 05:42 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
仅仅通过纯批处理无法办到,需要借助第三方软件。
It is not possible to do it only through pure batch processing, and third-party software needs to be relied on.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-12-24 05:45 |
|
|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
或者说让redtek兄帮助你用DEBUG做一个
Or let Brother redtek help you make one with DEBUG
|

我今后在论坛的目标就是做个超级坏人!!! |
|
2006-12-24 05:45 |
|
|
scriptor
银牌会员
    
积分 1187
发帖 555
注册 2006-12-21
状态 离线
|
『第 4 楼』:
谢谢大家了
使用 LLM 解释/回答一下
看来要揍自己一下了
It seems that I need to give myself a slap.
|
|
2006-12-24 05:47 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
  『第 5 楼』:
使用 LLM 解释/回答一下
上传一个Color命令的增强工具ColorX.exe。下面给出演示代码。
代码:
@echo off
for /l %%i in (1,1,9) do (
colorx -c %%i5
echo www.cn-dos.net/forum
)
pause
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
此帖被 +6 点积分 点击查看详情 评分人:【 zh159 】 | 分数: +6 | 时间:2006-12-24 08:34 |
|
附件
1: colorx.rar (2006-12-24 08:24, 17.53 KiB, 下载附件所需积分 1 点
,下载次数: 81)
附件
2: colorx_.jpg (2006-12-24 08:25, 19.97 KiB, 下载附件所需积分 1 点
,下载次数: 13)
|
|
2006-12-24 08:24 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
能支持中文显示的ColorX.exe不错,收藏ing
The ColorX.exe that can support Chinese display is quite good, I'm bookmarking it.
|
|
2006-12-24 08:34 |
|
|
hake
初级用户
 
积分 103
发帖 43
注册 2006-12-22
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
哪位大侠能给我详细的介绍下源代码里的语句含义吗?
Which expert can give me a detailed introduction to the meaning of the statements in the source code?
|
|
2006-12-24 08:51 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2006-12-24 08:53 |
|
|
hake
初级用户
 
积分 103
发帖 43
注册 2006-12-22
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
5楼的,如果我没记错,那楼是你的
For the user on the 5th floor, if I remember correctly, that post is yours
|
|
2006-12-24 09:02 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
多看看for /?帮助。
Take a look at the for /? help more.
|
|
2006-12-24 10:08 |
|
|
scriptor
银牌会员
    
积分 1187
发帖 555
注册 2006-12-21
状态 离线
|
『第 11 楼』:
谢谢
使用 LLM 解释/回答一下
Originally posted by lxmxn at 2006-12-23 19:24:
上传一个Color命令的增强工具ColorX.exe。下面给出演示代码。
代码:
@echo off
for /l %%i in (1,1,9) do (
colorx -c %%i5
echo www. ...
我只想利用CMD里自带的工具,不过还是很感谢你.
呵呵
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
|
|
2006-12-24 11:47 |
|
|
scriptor
银牌会员
    
积分 1187
发帖 555
注册 2006-12-21
状态 离线
|
『第 12 楼』:
请指教
使用 LLM 解释/回答一下
Originally posted by lxmxn at 2006-12-23 21:08:
多看看for /?帮助。
看的不是很懂啊,烦请指教,怎么用FOR就可以解决了?
谢谢
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
|
|
2006-12-24 11:49 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
用自带的,恐怕只有 debug 了。
Using the built-in one, probably only debug.
|
|
2006-12-24 12:08 |
|
|
voiL
中级用户
  
积分 384
发帖 189
注册 2005-10-19
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
其实外不外部也没什么的嘛.只要好用就OK了.
colorx很好用,个头不大.又支持中文.
之前也找了个,但不支持中文的.用了没几天就扔一边了.
加上之前那个可以把程序写到P处理的那个程序就十分完美了.
Last edited by voiL on 2006-12-25 at 12:58 AM ]
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 ]
|
|
2006-12-25 00:57 |
|