Recently want to modify the bat file output hints can have different color hints, found on the Internet, find this article, the realization of a good, first recorded, and left behind the study.
This is once written, and slightly improved a bit. @echo offSetStr=when the sky has a month, when I stop a cup of people to climb the moon can not be a month but with peoplesetlocalenabledelayedexpansionSetCol=cad9b for/F "tokens=1-4 delims="%%1In ("%str%") Do(Echo. for%%m in (%%1%%2%%3%%4) Do(Sets=%%m for/L%%a in (0,1,6) Do(Pager Setb=0%%col:~!x!,1%%Set/A x+=1&if!x!==5 (Setx=0)Setc=!s:~%%a,1!Set/p= <nul>!c! findstr/a:!b!. * "!c!*"del!c!ping/n 1/w 127.1>nul&ping/n 1/w 127.1>nul&ping/n 1/w)Echo.&Echo.))Pause>nul&Exit
Source: Http://zhidao.baidu.com/link?url=ZXgHX0ON0ESo2j_RlUOKyDHPeBFmBMY1gk1FgIPFLatG4QHMhUHvzSKYVHQgpcImU9qb4aDRmII4IsaFwPjEYK
BAT displays multiple lines of text, one by one! A different color!