BAT displays multiple lines of text, one by one! A different color!

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.