0
我知道存在着色回声的各种变体,但我尚未得到它为我工作。我想让ping结果的行具有不同的颜色。有没有办法做到这一点?更改批处理文件中的ping结果行的颜色
这是我的代码,用于ping我的网络上的IP地址。任何的意见都将会有帮助。
@echo off
COLOR 4f
ECHO OFF
set /P ip=Enter last 2 quadrants of your ip (PC Number) separated with a (.) : %=%
PING -n 2 10.1.%ip%
PING -n 2 10.2.%ip%
PING -n 2 10.3.%ip%
PING -n 2 10.4.%ip%
PING -n 2 10.5.%ip%
PING -n 2 10.6.%ip%
PING -n 2 10.7.%ip%
PING -n 2 10.8.%ip%
ECHO All done pinging. Press any key to exit.
PAUSE